← Quiz: Banker's Algorithm in Practice: all 15 questions
Quiz: Banker's Algorithm in Practice · Question 12 of 15
P2 asks for (1, 0, 0). It is within its Need, but Available is (0, 1, 1). What does the resource-request algorithm do?
P2 asks for (1, 0, 0). It is within its Need, but Available is (0, 1, 1). What does the resource-request algorithm do?
- A.Returns an error
- B.Makes P2 wait, because the resources are not free right now
- C.Grants it and runs the safety check later
- D.Kills P2
Answer & explanation
Correct answer: Makes P2 wait, because the resources are not free right now
Request > Available means the instances simply do not exist yet; no safety check is needed.
Can you get the rest right without peeking?
Take the timed Quiz: Banker's Algorithm in Practice quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →