CARVIEW |
Select Language
HTTP/2 200
server: nginx
content-type: text/html
last-modified: Thu, 31 Jul 2025 07:59:16 GMT
etag: "688b2254-7154"
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=315360000; includeSubDomains; preload
content-encoding: gzip
via: 1.1 varnish, 1.1 varnish
accept-ranges: bytes
age: 5104
date: Thu, 31 Jul 2025 11:41:09 GMT
x-served-by: cache-lga21986-LGA, cache-hyd1100027-HYD
x-cache: HIT, HIT
x-cache-hits: 8, 0
x-timer: S1753962070.811961,VS0,VE1
vary: Accept-Encoding
content-length: 5273
Concurrent Execution — Python 3.13.5 documentation
Navigation
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:
threading
— Thread-based parallelismmultiprocessing
— Process-based parallelismmultiprocessing.shared_memory
— Shared memory for direct access across processes- The
concurrent
package concurrent.futures
— Launching parallel taskssubprocess
— Subprocess managementsched
— Event schedulerqueue
— A synchronized queue classcontextvars
— Context Variables
The following are support modules for some of the above services:
Previous topic
Next topic
This page
«
Navigation
©
Copyright
2001-2025, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.
The Python Software Foundation is a non-profit corporation. Please donate.
Last updated on Jul 31, 2025 (07:57 UTC). Found a bug?
Created using Sphinx 8.2.3.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.
The Python Software Foundation is a non-profit corporation. Please donate.
Last updated on Jul 31, 2025 (07:57 UTC). Found a bug?
Created using Sphinx 8.2.3.