2012-08-20 08:05:46 +00: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 04:34:13 +00:00
|
|
|
multitasking). Here's an overview:
|
2012-08-20 08:05:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
|
|
|
threading.rst
|
|
|
|
multiprocessing.rst
|
2019-02-24 04:08:16 +00:00
|
|
|
multiprocessing.shared_memory.rst
|
2012-10-06 11:49:34 +00:00
|
|
|
concurrent.rst
|
2012-08-20 08:05:46 +00:00
|
|
|
concurrent.futures.rst
|
|
|
|
subprocess.rst
|
|
|
|
sched.rst
|
|
|
|
queue.rst
|
2021-03-06 16:25:54 +00:00
|
|
|
contextvars.rst
|
2012-08-20 08:05:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
The following are support modules for some of the above services:
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
|
|
|
_thread.rst
|