3.2 Avoiding Deadlocks
Concurrency means 3 problems: Locking is when someone – say, Larry – takes out a lock Blocking is when Larry takes out the lock, and then Sarah wants it. She’s blocked. Deadlocks are when Larry takes out a lock, and then Sarah takes out a different lock, and then both Larry and Sarah try to…
