Question
Option 2 : Request granted: the system remains in a safe state / अनुरोध स्वीकृत: प्रणाली सुरक्षित अवस्था में रहती है
Detailed Solution
सही उत्तर Request granted: the system remains in a safe state / अनुरोध स्वीकृत: प्रणाली सुरक्षित अवस्था में रहती है है।
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) अतिरिक्त इंस्टेंस माँगती है। बैंकर एल्गोरिदम लगाने पर क्या परिणाम होगा?
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. / अनुरोध नीड और उपलब्धता दोनों के भीतर है; अस्थायी आवंटन के बाद भी सुरक्षित अनुक्रम मौजूद है, अतः अनुरोध तुरंत स्वीकृत।