Question OS-DL-0063
HardFive processes P0–P4 share resources A, B and C. Allocation: P0 (0, 1, 0), P1 (2, 0, 0), P2 (3, 0, 2), P3 (2, 1, 1), P4 (0, 0, 2). Maximum need: P0 (7, 5, 3), P1 (3, 2, 2), P2 (9, 0, 2), P3 (2, 2, 2), P4 (4, 3, 3). Available: (3, 3, 2). P1's request for (1, 0, 2) has been granted, leaving (2, 3, 0) available. Now P0 requests (0, 2, 0). Should it be granted?
- A.
No; the resulting state would be unsafe, so P0 must wait
- B.
Yes, because resources are available
- C.
Sign up free to see the answer and a step-by-step explanation.