A holds lock 4 and waits for lock 7. B holds lock 7 and waits for lock 4. The locks block without timeout, and neither thread releases its lock first. What has happened?
Which set names the four necessary conditions for resource deadlock?
A thread waiting for a lock while holding no resource meets the hold-and-wait condition.
Circle one: True False
Every thread acquires lock 2 before lock 5 when it needs both. What does this rule prevent?
Thread P waits for a lock held by thread Q. What edge belongs in a thread-only wait-for graph?
A resource system can safely abort a holder, undo its partial work, and forcibly reclaim its resources. Which deadlock condition does this remove?
A complete directed wait-for graph has edges U to V, V to W and W to U. Sam reverses every arrow and says the cycle disappears. Which check corrects his claim?
R and S are already deadlocked on locks 8 and 9. A patch gives future executions one acquisition order. What should the team conclude about the stuck run?