The GATE Grind

GATE 2007 CS – Question 57

Operating System · Deadlock · 2 marks · Multiple choice

Three processes share5 units each of resources X, Y, Z. alloc gives held resources; request gives further resources to finish. Which finishes LAST?

Processalloc X, Y, Zrequest X, Y, Z
P01, 2, 11, 0, 3
P12, 0, 10, 1, 2
P22, 2, 11, 2, 0
  1. P0
  2. P1
  3. P2
  4. None; system is deadlocked.

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (C) P2

Explanation

We are sorry we couldn't write detailed soluition for this, we are working on it!, please consider asking your own AI, its just 2-3 clicks with very minimum effort

More Deadlock questions

All Deadlock questions →