🎙 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 4 of 15

In the example, why could P3's request (1, 0, 1) be granted?

In the example, why could P3's request (1, 0, 1) be granted?

  1. A.P3 has the lowest number
  2. B.After granting it, P3's Need becomes (0, 0, 0), so it can finish and return everything
  3. C.It asked for fewer resources than P0
  4. D.Available becomes larger
Answer & explanation

Correct answer: After granting it, P3's Need becomes (0, 0, 0), so it can finish and return everything

A process with zero remaining need can always finish first.

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 →