Tutorial sequence

Concurrency Without Folklore

5of 5 published
  1. 01

    advanced / 32 min

    The GIL, without the folklore

    What CPython locks, what it does not guarantee, and how free-threaded Python changes the decision.

    Read
  2. 02

    advanced / 31 min

    Threads, tasks, and processes solve different waits

    Choose a concurrency mechanism by locating blocked resources, ownership boundaries, and coordination costs.

    Read
  3. 03

    advanced / 30 min

    Asyncio cancellation is part of your API

    Design coroutine cleanup, deadlines, and cancellation propagation as observable interface behavior.

    Read
  4. 04

    advanced / 31 min

    Task groups and failure propagation

    Use structured concurrency to make child lifetime, sibling cancellation, and multiple failures explicit.

    Read
  5. 05

    advanced / 32 min

    Processes make serialization part of the design

    Design process workers around explicit values, importable callables, transfer costs, and start-method realities.

    Read