Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 3 : P1, P3, P4, P0, P2 / P1, P3, P4, P0, P2

Advertisement

Detailed Solution

सही उत्तर P1, P3, P4, P0, P2 / P1, P3, P4, P0, P2 है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

A system has 5 processes with Allocation = [[0,1,0],[2,0,0],[3,0,2],[2,1,1],[0,0,2]], Max = [[7,5,3],[3,2,2],[9,0,2],[2,2,2],[4,3,3]] and Available = [3,3,2]. Which of the following is a safe sequence? / एक सिस्टम में 5 प्रक्रियाएँ हैं: Allocation = [[0,1,0],[2,0,0],[3,0,2],[2,1,1],[0,0,2]], Max = [[7,5,3],[3,2,2],[9,0,2],[2,2,2],[4,3,3]] और Available = [3,3,2]। निम्न में से कौन सा सुरक्षित क्रम है?

1.
P0, P1, P2, P3, P4 / P0, P1, P2, P3, P4
2.
P1, P3, P0, P4, P2 / P1, P3, P0, P4, P2
3.
P1, P3, P4, P0, P2 / P1, P3, P4, P0, P2
4.
P2, P1, P3, P4, P0 / P2, P1, P3, P4, P0

Correct Answer: P1, P3, P4, P0, P2 / P1, P3, P4, P0, P2

Needs are P0(7,4,3), P1(1,2,2), P2(6,0,0), P3(0,1,1), P4(4,3,1); with Available (3,3,2), P1 can finish first, then P3, then P4, then P0, then P2 — each step's need fits the currently available resources. / आवश्यकताएँ P0(7,4,3), P1(1,2,2), P2(6,0,0), P3(0,1,1), P4(4,3,1) हैं; Available (3,3,2) के साथ पहले P1, फिर P3, फिर P4, फिर P0, फिर P2 पूर्ण हो सकती है — प्रत्येक चरण की आवश्यकता वर्तमान उपलब्ध संसाधनों में समाती है।

Downloaded from PrepSnap (prepsnap.in)