11. Suppose that there are ten resources available to three processes. At time 0
ID: 644589 • Letter: 1
Question
11. Suppose that there are ten resources available to three processes. At time 0, the following data is collected. The table indicates the process, the maximum number of resources needed by the process, and the number of resources currently owned by each process. Which of the following correctly characterizes this state? A) It is safe. B) It is not safe. C) The state cannot be determined. D) It is an impossible state. B 12. Suppose that there are 12 resources available to three processes. At time 0, the following data is collected. The table indicates the process, the maximum number of resources needed by the process, and the number of resources currently owned by each process. Which of the following correctly characterizes this state? A) It is safe. B) It is not safe. C) The state cannot be determined. D) It is an impossible state.Explanation / Answer
11. The current available resource is 10- 4 -4 -1 = 1
Po needs 6 resourse to complete so it cannto run.
P1 needs 2 resource to complete so it cannot run.
P2 needs 2 resource to complete so it cannot run.
So no prcess can proceed. Thus it is not safe.
12. The current available resource is 12- 4 -4 -2 = 2
Po needs 6 resourse to complete so it cannto run.
P1 needs 1 resource to complete. So it is allocated 1 resource and it completes. Then the total free resources available will be 2+(resource owned by P1) = 2+2 = 4
then , P2 needs 3 resource to complete so it can run.After P2 finishes, the total free resources will be 5+(resource owned by P2) = 4+4 = 8
Then P0 runs as it needs 6 resources and 8 is available.
Thus it is safe.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.