September 2026
1051 pages
35h 4m
English
In this chapter, you learned about the concurrent.futures, threading, multiprocessing, and asyncio modules that enable parallel programming in Python, providing interfaces at different levels of abstraction and with different approaches. In practice, the question arises as to which of the modules is most suitable for which use cases. In this section, we’ll give you some basic recommendations to help you with this question.
First you should decide if cooperative multitasking with asyncio is a viable option. This is usually the case when you develop a server or client that needs to perform many I/O-intensive operations in parallel. Because neither ...
Read now
Unlock full access