🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Deadlocks: all 10 questions

Quiz: Deadlocks · Question 5 of 10

Available = (2, 1), P has Allocation (1, 0) and Max (3, 2). Can P finish right now?

Available = (2, 1), P has Allocation (1, 0) and Max (3, 2). Can P finish right now?

  1. A.No — its Need (2, 2) is more than Available (2, 1)
  2. B.Yes — Available is more than its Allocation
  3. C.Yes — it only needs one more of each
  4. D.It depends on the CPU speed
Answer & explanation

Correct answer: No — its Need (2, 2) is more than Available (2, 1)

Need = (3, 2) − (1, 0) = (2, 2). (2, 2) is not ≤ (2, 1), so P cannot be guaranteed to finish now.

Can you get the rest right without peeking?

Take the timed Quiz: Deadlocks quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →