DSA Factory
Free Deadlocks lessonsDeadlocks · Stage 0 · What a deadlock is · Step 2

Resource-allocation graphs

Draw who holds and who wants what, and learn when a cycle in the picture means deadlock. About 13 minutes.

Quick check

A resource-allocation graph has a cycle, and every resource has several instances. What can you conclude?

  1. AThere might be a deadlock; the cycle isn't enough to prove it
  2. BThere is definitely a deadlock
  3. CThere is definitely no deadlock
Show the answer

There might be a deadlock; the cycle isn't enough to prove it. A process outside the cycle may release an instance that unwinds it.

Lock it in

4 questions on this idea

Short questions that apply the idea to new cases: trace it, work out a number, put steps in order. A wrong answer explains itself.

Answer them in your browserFree account, no card. Your progress is saved, and the idea comes back in a quick review later.
Sign up free to solve