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
|
|
|
|
multitasking) Here's an overview:
|
|
|
|
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
|
|
|
threading.rst
|
|
|
|
multiprocessing.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
|
|
|
|
select.rst
|
|
|
|
|
|
|
|
|
|
|
|
The following are support modules for some of the above services:
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
|
|
|
dummy_threading.rst
|
|
|
|
_thread.rst
|
|
|
|
_dummy_thread.rst
|