Concurrency
Threads, locks and races — watch the interleavings that bite.
Concurrency progress0 / 10
- Threads vs ProcessesShared memory, or a wall between you.4m
- Race ConditionsTwo readers, one write survives.5m
- Locks and MutexesOne thread inside, everybody else waits.5m
- DeadlockEveryone holding what the next one needs.5m
- Thread PoolsHire the workers once, reuse them all day.4m
- Producer and ConsumerA bounded belt between the two sides.5m
- Async and the Event LoopOne thread, politely taking turns.5m
- Atomic OperationsIndivisible: nobody sees it half-done.4m
- SemaphoresCount the permits, not the holders.4m
- Designing Thread-Safe CodeDon't share, freeze it, or guard it.5m