1. Given the following data for a system with 5 processes (P0–P4) and 3 resource types (A,
B, C):
Available instances for each resource = (3, 3, 2)
Process Allocation Max
P0
010
753
P1
200
322
P2
302
902
P3
211
222
P4
002
433
Tasks:
a) Construct the Need matrix for the system.
b) Apply the Banker's Algorithm to determine whether the system is in a safe state.
c) If safe, identify a safe sequence of process execution.