5. The state of a system at a particular time is shown in Table 1. Total resource unit of R1, R2, R3 and R4 is 6, 8, 4 and 5 respectively. P1 P2 P3 P4 P5 Maximum Demand R1 R2 3 4 0 2 3 4 4 4 7 0 R3 3 2 4 2 2 Table 1 R4 3 2 2 1 5 Current Allocation R1 R2 R3 R4 1 0 0 0 1 1 1 1 1 0 3 0 1 0 0 2 0 1 1 2 a. Determine whether the system state is safe or unsafe by applying the banker's algorithm. b. Given that process P1 has requested for the allocation of one unit of R2, determine whether the request should be granted by using banker's algorithm. Show the details of your calculation, including the resources needed by each process and the resources available. You may reuse the answer in part (a).
5. The state of a system at a particular time is shown in Table 1. Total resource unit of R1, R2, R3 and R4 is 6, 8, 4 and 5 respectively. P1 P2 P3 P4 P5 Maximum Demand R1 R2 3 4 0 2 3 4 4 4 7 0 R3 3 2 4 2 2 Table 1 R4 3 2 2 1 5 Current Allocation R1 R2 R3 R4 1 0 0 0 1 1 1 1 1 0 3 0 1 0 0 2 0 1 1 2 a. Determine whether the system state is safe or unsafe by applying the banker's algorithm. b. Given that process P1 has requested for the allocation of one unit of R2, determine whether the request should be granted by using banker's algorithm. Show the details of your calculation, including the resources needed by each process and the resources available. You may reuse the answer in part (a).
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps