🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Returns an error
  2. B.Makes P2 wait, because the resources are not free right now
  3. C.Grants it and runs the safety check later
  4. 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 →