Concurrency Problems
Producer-consumer, deadlocks, starvation and livelock.
3 notes · 14 min total
- 1Producer-Consumer ProblemHow two semaphores and a mutex coordinate a bounded buffer, and why the order you acquire them in prevents deadlock.4 min
- 2DeadlocksThe four conditions that cause a deadlock, and how breaking each one (especially lock ordering) prevents it.6 min
- 3Starvation vs Deadlock vs LivelockHow to tell the three liveness failures apart by symptoms, causes and fixes.4 min