In a single processor system, there are four units of each resource A, B and C, which are to be shared by three processes. The current scenario is described by allocation matrix, which gives the number of resources of each type allocated to each process and the request matrix, which gives the number resources requested by each process to complete the execution. Which process will complete first and which will be last?
A. P1, P2
B. P0, P2
C. P1, P0
D. No processes will complete due to deadlock
Answer:A
In a single processor system, there are four units of each resource A, B and C, which are to be shared by three processes. The current scenario is described by allocation matrix, which gives the number of resources of each type allocated to each process and the request matrix, which gives the number resources requested by each process to complete the execution. Which process will complete first and which will be last?
A. P1, P2 B. P0, P2 C. P1, P0 D. No processes will complete due to deadlock