The chapters
Work through them in order. Each one explains an idea, gives you a real bug that shows it, and ends with a check that runs your fix many times.
- 01Waiting is not workingDinner for twenty takes two secondsthreads, processes, the GIL20 min
- 02Race conditionsTen croissants, fifty soldcheck-then-act, locks20 min
- 03Hold locks brieflyThe lock that closed the kitchencontention, critical sections15 min
- 04DeadlockKnife, then boarddeadlock, lock ordering20 min
- 05Queues: producers and consumersThe orders nobody cookedqueues, sentinels, backpressure20 min
- 06The event loopThe waiter who stood stillasyncio, blocking the loop20 min
- 07Limits and backpressureFifty orders at oncesemaphores, fan-out limits15 min
- 08Timeouts and cancellationThe burners that never came backtimeouts, cancellation, cleanup20 min