Question

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

Option 2 : Request granted: the system remains in a safe state / अनुरोध स्वीकृत: प्रणाली सुरक्षित अवस्था में रहती है

Advertisement

Detailed Solution

सही उत्तर Request granted: the system remains in a safe state / अनुरोध स्वीकृत: प्रणाली सुरक्षित अवस्था में रहती है है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

In the same resource system as the previous question (Available = (3,3,2)), process P1 now requests (1,0,2) additional instances. Applying Banker's algorithm, what is the outcome? / पिछले प्रश्न वाली प्रणाली में (उपलब्ध = (3,3,2)) प्रोसेस P1 अब (1,0,2) अतिरिक्त इंस्टेंस माँगती है। बैंकर एल्गोरिदम लगाने पर क्या परिणाम होगा?

1.
Request denied: it exceeds P1's maximum need / अनुरोध अस्वीकृत: यह P1 की अधिकतम आवश्यकता से अधिक है
2.
Request granted: the system remains in a safe state / अनुरोध स्वीकृत: प्रणाली सुरक्षित अवस्था में रहती है
3.
Request denied: it exceeds currently available resources / अनुरोध अस्वीकृत: यह वर्तमान उपलब्ध संसाधनों से अधिक है
4.
Request granted but the system becomes unsafe / अनुरोध स्वीकृत पर प्रणाली असुरक्षित हो जाती है

Correct Answer: Request granted: the system remains in a safe state / अनुरोध स्वीकृत: प्रणाली सुरक्षित अवस्था में रहती है

The request (1,0,2) is within P1's need (1,2,2) and within Available (3,3,2), so it is tentatively granted: Available becomes (2,3,0) and P1's need becomes (0,2,0). Safety check: P1 fits in (2,3,0), releasing to (5,3,2); then P3, P4, P0, P2 all complete in order. A safe sequence exists, so the request is granted immediately. / अनुरोध नीड और उपलब्धता दोनों के भीतर है; अस्थायी आवंटन के बाद भी सुरक्षित अनुक्रम मौजूद है, अतः अनुरोध तुरंत स्वीकृत।

Downloaded from PrepSnap (prepsnap.in)