Skip to content
Mad4Study

Engineering & Science

GATE Computer Science

  • GATE CS
  • 2026–27 pattern practice
  • Operating Systems
  • Deadlocks
  • Medium

Three processes each need at most 2 units of a resource. What is the minimum number of units that guarantees no deadlock?

Process Management

Pick an option to check your answer.

Worst case: each process holds one unit less than its maximum (3×1=33 \times 1 = 3 units) and waits. One extra unit lets one process finish and release its units. Minimum =n(k−1)+1=3(1)+1=4= n(k - 1) + 1 = 3(1) + 1 = 4.

Why not the others

  • 3 allows the deadlock in which each process holds 1 unit.
  • 6 is sufficient but not the minimum.
  • 5 is also sufficient but not minimal.

Report an error

GATE CS · Operating Systems · Process Management