Tutorial sequence
Concurrency Without Folklore
5of 5 published
- 01Read
advanced / 32 min
The GIL, without the folklore
What CPython locks, what it does not guarantee, and how free-threaded Python changes the decision.
- 02Read
advanced / 31 min
Threads, tasks, and processes solve different waits
Choose a concurrency mechanism by locating blocked resources, ownership boundaries, and coordination costs.
- 03Read
advanced / 30 min
Asyncio cancellation is part of your API
Design coroutine cleanup, deadlines, and cancellation propagation as observable interface behavior.
- 04Read
advanced / 31 min
Task groups and failure propagation
Use structured concurrency to make child lifetime, sibling cancellation, and multiple failures explicit.
- 05Read
advanced / 32 min
Processes make serialization part of the design
Design process workers around explicit values, importable callables, transfer costs, and start-method realities.