Question: 5. Calculation Questions (40) 1.(20) A system has three types of resource: R1, R2, R3 and R4. At time TO, a snapshot of the system

5. Calculation Questions (40) 1.(20) A system has three types of resource: R1, R2, R3 and R4. At time TO, a snapshot of the system is as follows. The total number of R1 R2 R3 and R4 is 10, 15, 14, 13. Answer the questions using the bank's algorithm. Allocation Max Process R1 R2 R3 R4 R1 R2 R3 R4 PO P1 P2 P3 P4 1 1 1 2 2 0 2 0 3 8 2 4 2 1 1 3 1 4 6 4 2 1 3 3 2 8 4 0 4 996 3 2 1 3 1 7 9 4 (1) What is the number of available resources? What is the content of the matrix Need? (2) Is system in safe state or not? If it is safe, show the safe sequence. If it is unsafe, describe the reason. (3) If a request from process PO arrives for (1,0,2,0), to make sure that system is in safe state, can the resources be allocated for the process? If the resources can be allocated, show the safe sequence. If the resources cannot be allocated, describe the reason
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
