| CARVIEW |
Select Language
HTTP/2 200
server: nginx
content-type: text/html
last-modified: Mon, 29 Dec 2025 18:03:28 GMT
etag: "6952c270-77f1"
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: 941
date: Tue, 30 Dec 2025 05:19:43 GMT
x-served-by: cache-lga21954-LGA, cache-bom-vanm7210050-BOM
x-cache: HIT, HIT
x-cache-hits: 170, 0
x-timer: S1767071984.529599,VS0,VE1
vary: Accept-Encoding
content-length: 5509
Concurrent Execution — Python 3.14.2 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 parallelism- Introduction
- Reference
- Programming guidelines
- Examples
multiprocessing.shared_memory— Shared memory for direct access across processes- The
concurrentpackage concurrent.futures— Launching parallel tasksconcurrent.interpreters— Multiple interpreters in the same processsubprocess— 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 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 Dec 29, 2025 (18:01 UTC). Found a bug?
Created using Sphinx 9.0.4.
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 Dec 29, 2025 (18:01 UTC). Found a bug?
Created using Sphinx 9.0.4.