| 1 |
.. _concurrency: |
| 2 |
|
| 3 |
******************** |
| 4 |
Concurrent Execution |
| 5 |
******************** |
| 6 |
|
| 7 |
The modules described in this chapter provide support for concurrent |
| 8 |
execution of code. The appropriate choice of tool will depend on the |
| 9 |
task to be executed (CPU bound vs IO bound) and preferred style of |
| 10 |
development (event driven cooperative multitasking vs preemptive |
| 11 |
multitasking). Here's an overview: |
| 12 |
|
| 13 |
|
| 14 |
.. toctree:: |
| 15 |
|
| 16 |
threading.rst |
| 17 |
multiprocessing.rst |
| 18 |
multiprocessing.shared_memory.rst |
| 19 |
concurrent.rst |
| 20 |
concurrent.futures.rst |
| 21 |
concurrent.interpreters.rst |
| 22 |
subprocess.rst |
| 23 |
sched.rst |
| 24 |
queue.rst |
| 25 |
contextvars.rst |
| 26 |
|
| 27 |
|
| 28 |
The following are support modules for some of the above services: |
| 29 |
|
| 30 |
.. toctree:: |
| 31 |
|
| 32 |
_thread.rst |