Anonymous user menu

Gate2007_57

A single processor system has three resource types X, Y and Z, which are shared by three processes. There are 5 units of each resource type. Consider the following scenario, where the column alloc denotes the number of units of each resource type allocated to each process, and the column request denotes the number of units of each resource type requested by a process in order to
complete execution. Which of these processes will finish LAST?

    alloc     request  
  X   Y Z X      Y Z
p0 1   2 1 1      0 3
p1 2   0 1 0      1 2
p2 2   2 1      2 0

(A) P0           (B) P1          (C) P2
(D) None of the above, since the system is in a deadlock.

Answer

Discuss

0Comment