Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2. Suppose that there are 12 resources available to three processes. At time 0,

ID: 3699856 • Letter: 2

Question


2.   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. Is the system in a safe state? Why?
(10 points)
Process           Maximum Needs       Currently holding
P0                                       10                              4
P1                                        3                               2
P2                                        7                               4

Explanation / Answer

Since there were 12 resources out of which 10 are allocated and we have 2 available resources. Now, with 2 resources, we can satisfy the need of P1 and after taking resources from P1, we can satisfy the need of P2 and then P1.

So, system is in safe state and safe sequence will be P1 -> P2 -> P0.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote