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

In the detection example, after P2 requests one more C, which process can still finish?

In the detection example, after P2 requests one more C, which process can still finish?

  1. A.P0
  2. B.P1
  3. C.P3
  4. D.None of them
Answer & explanation

Correct answer: P0

P0 requests nothing, so it finishes and releases (0, 1, 0); after that no other request fits, and P1–P4 are deadlocked.

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 →