Skip to content

UGC NET CS 2016System Software and Operating System › DeadlocksVerified

UGC NET CS 2016 PYQ: Consider a system with seven processes $A$ through $G$ and six resources $R$ through $W$. Resource ownership…

Consider a system with seven processes $A$ through $G$ and six resources $R$ through $W$.

Resource ownership is as follows :

process $A$ holds $R$ and wants $T$

process $B$ holds nothing but wants $T$

process $C$ holds nothing but wants $S$

process $D$ holds $U$and wants $S$ & $T$

process $E$ holds $T$ and wants $V$

process $F$ holds $W$ and wants $S$

process $G$ holds $V$ and wants $U$

Is the system deadlocked ? If yes, _______ processes are deadlocked.

  1. A
    No
  2. B
    Yes, $A, B, C$
  3. C
    Yes, $D, E, G$
    Correct answer
  4. D
    Yes, $A, B, F$

Answer

(C) Yes, $D, E, G$

Approach

Build the wait-for graph from holds and requests and look for a cycle.

Reviewed by UGC IQ Editorial Team.