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 and 3 resource types with Available = (3, 3, 2). Allocation and Max are: P0 Allocation (0,1,0) Max (7,5,3); P1 Allocation (2,0,0) Max (3,2,2); P2 Allocation (3,0,2) Max (9,0,2); P3 Allocation (2,1,1) Max (2,2,2); P4 Allocation (0,0,2) Max (4,3,3). Which of the following is a safe sequence? / एक सिस्टम में 5 प्रोसेस और 3 संसाधन प्रकार हैं, Available = (3, 3, 2)। Allocation और Max हैं: P0 Allocation (0,1,0) Max (7,5,3); P1 Allocation (2,0,0) Max (3,2,2); P2 Allocation (3,0,2) Max (9,0,2); P3 Allocation (2,1,1) Max (2,2,2); P4 Allocation (0,0,2) Max (4,3,3)। निम्न में से कौन सा सुरक्षित क्रम है?

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

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

P1 can finish first since its need (1,2,2) fits in Available (3,3,2); releasing its allocation lets P3 finish, then P4, then P0, and finally P2, so the system can satisfy every process in that order. / P1 पहले पूरा हो सकता है क्योंकि उसकी आवश्यकता (1,2,2) Available (3,3,2) में समाती है; उसका आवंटन मुक्त होने पर P3, फिर P4, फिर P0 और अंत में P2 पूरा होता है, अतः सिस्टम इस क्रम में हर प्रोसेस संतुष्ट कर सकता है।

Downloaded from PrepSnap (prepsnap.in)