RSS Planet Python

Real Python: Speed Up Python With Concurrency

Concurrency is the act of having your computer do multiple things at the same time. If you’ve heard a lot of talk about asyncio being added to Python but are curious how it compares to other concurrency methods or are wondering what concurrency is and how it might speed up your program, you’ve come to the right place. In this course, you’ll learn the following: How I/O bound programs are effected by latency Which concurrent programming patterns to use What the differences are between the Python concurrency libraries How to write code that uses the threading, asyncio, and multiprocessing libraries Sample code was tested using Python 3.8.5. Since much of the asyncio library has been in flux since Python 3.4, it’s recommended to use at least Python 3.7 for the asyncio portions of the course.
favicon
realpython.com
realpython.com
Create attached notes ...