Professional Documents
Culture Documents
mc170403687:
Question no 1
Consider the below given snapshot of the system. P1 to P5 represent the 5 processes currently running
on the system. M, N, O and P represent the resources whereas M, N, O and P have 13, 11, 9 and 16
instances respectively.
processes Available
M N O p
P1 6 2 2 6
P2 9 3 4 7
P3 11 4 4 10
P4 12 7 5 12
P5 13 11 9 14
Q2 What will be the content of the matrix Need?
processes Need
M N O p
P1 4 3 1 0
P2 2 1 2 1
P3 2 3 2 3
P4 2 0 2 1
P5 3 1 2 3
Is the system in a safe state Yes/No? If yes, then identify the safe sequence.
Question No 2
Consider the following resource allocation graph. Is there any deadlock in this graph or not? If yes, then
mention the dead lock sequence.
This graph is show cycle and p1, p2, p3 are a deadlock sequences but p4 is not dead lock sequences.