2012-08-20 05:05:46 -03:00
|
|
|
.. _concurrency:
|
|
|
|
|
|
|
|
********************
|
|
|
|
Concurrent Execution
|
|
|
|
********************
|
|
|
|
|
|
|
|
The modules described in this chapter provide support for concurrent
|
|
|
|
execution of code. The appropriate choice of tool will depend on the
|
|
|
|
task to be executed (CPU bound vs IO bound) and preferred style of
|
|
|
|
development (event driven cooperative multitasking vs preemptive
|
2013-04-17 01:34:13 -03:00
|
|
|
multitasking). Here's an overview:
|
2012-08-20 05:05:46 -03:00
|
|
|
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
|
|
|
threading.rst
|
|
|
|
multiprocessing.rst
|
2019-02-24 00:08:16 -04:00
|
|
|
multiprocessing.shared_memory.rst
|
2012-10-06 08:49:34 -03:00
|
|
|
concurrent.rst
|
2012-08-20 05:05:46 -03:00
|
|
|
concurrent.futures.rst
|
|
|
|
subprocess.rst
|
|
|
|
sched.rst
|
|
|
|
queue.rst
|
2021-03-06 12:25:54 -04:00
|
|
|
contextvars.rst
|
2012-08-20 05:05:46 -03:00
|
|
|
|
|
|
|
|
|
|
|
The following are support modules for some of the above services:
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
|
|
|
_thread.rst
|