November 2022
Beginner to intermediate
752 pages
19h 19m
English
Before the advent of asynchrony in Python, you had two options to improve the responsiveness of your program: threading and multiprocessing. Although the two concepts are often seen as related, and even interchangeable in some languages, they couldn’t be more different in Python.
Threading is a means of achieving concurrency, which is useful in working around IO-blocking tasks, wherein the code is limited by the speed of something external, like user input, the network, or another program. It is not useful by itself for working around CPU-blocking tasks, wherein the magnitude of processing is the cause of code ...
Read now
Unlock full access