Menu

System Model Suppose State Computer System Described Following Characteristics System Comp Q43836102

System model Suppose that the state of a computer system is described by the following characteristics: The system comprises

System model Suppose that the state of a computer system is described by the following characteristics: The system comprises of five processes and four types of resources. • PO-P4 denotes the set of processes • RI-R4 denotes the set of resource types • Total Existing Resources are: Resource types R1 R2 R3 R4 The number of items of each type: 7 . During the launch, the processes declared their maximum requests: Max Resource types Processes PI R 2 R3 R4 PO 3 3 2 P1 2 1 3 P2 3 2 1 2 P3 2 1 2 • Currently used resources are described as follows: [Allocation Resource types Processes R1 R2 R3 PO 1 2 2 Pi 0 0 1 P2 1 1 1 P3 1 1 1 P4 2 0 1 R4 0 0 0 Assignment: a) Compute the Available) vector. b) Compute the (Need matrix c) Using the bankers’ algorithm, determine if the system is currently in a safe state. If so, give a safe sequence of the process. In addition, show how the Available) (Working) vector changes as each process terminates d) If the request [1,1,0,0from P1 arrives, will it be correct to grant the request? Justify your decision using the bankers’ algorithm. Show transcribed image text System model Suppose that the state of a computer system is described by the following characteristics: The system comprises of five processes and four types of resources. • PO-P4 denotes the set of processes • RI-R4 denotes the set of resource types • Total Existing Resources are: Resource types R1 R2 R3 R4 The number of items of each type: 7 . During the launch, the processes declared their maximum requests: Max Resource types Processes PI R 2 R3 R4 PO 3 3 2 P1 2 1 3 P2 3 2 1 2 P3 2 1 2 • Currently used resources are described as follows: [Allocation Resource types Processes R1 R2 R3 PO 1 2 2 Pi 0 0 1 P2 1 1 1 P3 1 1 1 P4 2 0 1 R4 0 0 0 Assignment: a) Compute the Available) vector. b) Compute the (Need matrix c) Using the bankers’ algorithm, determine if the system is currently in a safe state. If so, give a safe sequence of the process. In addition, show how the Available) (Working) vector changes as each process terminates d) If the request [1,1,0,0from P1 arrives, will it be correct to grant the request? Justify your decision using the bankers’ algorithm.

Expert Answer


Answer to System model Suppose that the state of a computer system is described by the following characteristics: The system compr…

OR