3 Concurrency, parallelism, and asynchronous processing
This chapter covers
- Using asynchronous processing to design applications with reduced wait times
- Threading in Python and its limitations on writing parallel applications
- Making multiprocessing applications to take full advantage of multicore computers
Modern CPU architectures allow for more than one sequential program to be executed at the same time, permitting impressive gains in processing speeds. In fact, speeds can increase right up to the number of parallel processing units (e.g., CPU cores) that are available. The bad news is that to take advantage of all this parallel processing speed for our programs, we need to make our code parallel-aware, and Python is ill-suited for writing ...
Get Fast Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.