The Complete Guide to Concurrency and Parallelism in Python: The Evolution from One Thread to Multiple Cores

Starting with the fundamental distinction between concurrency and parallelism, this guide systematically explains when to use Python’s GIL, threading, multiprocessing, asyncio, and concurrent.futures, how they work together, and how to choose among them.

March 15, 2026 · 18 min · 3774 words · Andy SI
Read more

Python's Async and Iteration Systems: A Complete Review Guide Built Around One Core Metaphor

Using the metaphor of a restaurant kitchen with a single-threaded event loop, this guide systematically explains the complete correspondence among synchronous iteration, generators, coroutines, asynchronous generators, and thread-pool bridging in Python.

March 15, 2026 · 13 min · 2650 words · Andy SI
Read more