Inside the ComputerConcurrency
Deadlock
Two programs can wait for each other forever
Your laptop freezes: nothing crashes, nothing happens, the cursor just waits. What could two programs possibly be waiting for?
You'll find out
- How two sensible programs freeze forever
- Why five philosophers starve
- How computers break the standoff
Why it matters
Databases, apps and operating systems run many things at once, and every one of them has to dodge this trap.
Play this lesson
Free to play in your browser or on iPhone