← 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?
- A.No — its Need (2, 2) is more than Available (2, 1)
- B.Yes — Available is more than its Allocation
- C.Yes — it only needs one more of each
- 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 →