Question: Consider we have 5 processes, P0 through P4, and there are four types of resources in the system. At T0 we have the following system
Consider we have 5 processes, P0 through P4, and there are four types of resources in the system. At T0 we have the following system state:
Using the bankers algorithm answer the following questions :
a. Calculate Need matrix.
b. Is the system in a safe state? If yes, then generate the safe sequence. If no, then explain the reasoning.
c. If P1 process requests (0,2,1,0), can the request be granted immediately? Explain the process in detail for acceptance or rejection of request.
Given Matrices Max Matrix Allocation Matrix Available Matrix P P2 P3 P4 Total 0 1 1 2 1 3 0 6 1 3 6 3 1 14 D 0 1 5 2 4 12 A 0 1 2 0 0 B 2 6 3 6 1 5 6 5 D A B C D 0 15 2 0 2 6 2 6 0 0 6 5 2 12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
