September 2026
1051 pages
35h 4m
English
Python provides various interfaces for the parallel execution of program parts. Which of the interfaces should be used depends on the specific application (see Table 31.1).
|
Interface |
Properties |
|---|---|
|
concurrent.futures |
Interface for executing threads and processes with a high degree of abstraction, low flexibility, and no synchronization capabilities |
|
threading, multiprocessing |
Interfaces for the execution of threads and processes with a lower degree of abstraction, high flexibility, and possibilities for synchronization |
|
asyncio |
Interface for cooperative multitasking |
Table 31.1 Python's Interfaces for Parallelization
For simple tasks that can be performed independently ...
Read now
Unlock full access