Question OS-DL-0061
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). Using the Banker's algorithm and always picking the lowest-numbered process that can finish, which safe sequence is found?
- A.
P1, P3, P4, P0, P2
- B.
P1, P3, P0, P2, P4
- C.
Sign up free to see the answer and a step-by-step explanation.