Question: 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.

 a) Compute the [Available] vector. b) Compute the [Need] matrix. c)

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, 0] from P1 arrives, will it be correct to grant the request? Justify your decision using the bankers algorithm.

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 R1-R4 denotes the set of resource types Total Existing Resources are: Resource types Ri R2 R3 R4 The number of items of each type: 7 3 Ri . During the launch, the processes declared their maximum requests: (Max) Resource types Processes R2 R3 R4 32 P1 2 3 2 P2 2 2 1 P3 2 2 P4 3 PO Currently used resources are described as follows: Allocation Resource types Processes R2 R3 PO 22 0 0 1 P21 R1 P1 0 1 0 P4 2 0 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!