GATEverse
← GATE CSE 2009

Q30

MCQ2 marks, −0.67

Consider a system with 44 types of resources R1R1 (33 units), R2R2 (22 units), R3R3 (33 units), R4R4 (22 units). A non-preemptive resource allocation policy is used. At any given instance, a request is not entertained if it cannot be completely satisfied. Three processes P1P1, P2P2, P3P3 request the resources as follows if executed independently.

Process P1:Process P2:Process P3:t=0: requests 2 units of R2t=0: requests 2 units of R3t=0: requests 1 unit of R4t=1: requests 1 unit of R3t=2: requests 1 unit of R4t=2: requests 2 units of R1t=3: requests 2 units of R1t=4: requests 1 unit of R1t=5: releases 2 units of R1t=5: releases 1 unit of R2t=6: releases 1 unit of R3t=7: requests 1 unit of R2and 1 unit of R1t=8: Finishest=8: requests 1 unit of R3t=7: releases 1 unit of R3t=9: Finishest=8: requests 2 units of R4t=10: Finishes\begin{array}{|l|l|l|} \hline \textbf{Process P1:} & \textbf{Process P2:} & \textbf{Process P3:} \\ \hline t=0\text{: requests } 2 \text{ units of } R2 & t=0\text{: requests } 2 \text{ units of } R3 & t=0\text{: requests } 1 \text{ unit of } R4 \\ t=1\text{: requests } 1 \text{ unit of } R3 & t=2\text{: requests } 1 \text{ unit of } R4 & t=2\text{: requests } 2 \text{ units of } R1 \\ t=3\text{: requests } 2 \text{ units of } R1 & t=4\text{: requests } 1 \text{ unit of } R1 & t=5\text{: releases } 2 \text{ units of } R1 \\ t=5\text{: releases } 1 \text{ unit of } R2 & t=6\text{: releases } 1 \text{ unit of } R3 & t=7\text{: requests } 1 \text{ unit of } R2 \\ \text{and } 1 \text{ unit of } R1 & t=8\text{: Finishes} & t=8\text{: requests } 1 \text{ unit of } R3 \\ t=7\text{: releases } 1 \text{ unit of } R3 & & t=9\text{: Finishes} \\ t=8\text{: requests } 2 \text{ units of } R4 & & \\ t=10\text{: Finishes} & & \\ \hline \end{array}

Which one of the following statements is TRUE if all three processes run concurrently starting at time t=0t = 0?

Sign in to save attempts.

Loading…