Consider the resource allocation graph given in the figure. (a) Find if the…

PYQ GATE 1994

Consider the resource allocation graph given in the figure.

Resource allocation graph: r1 has two instances allocated to p0 and p1; r2 has three allocated to p1, p2 and p3; r3 has two, one allocated to p0 and one free. Requests are p0 to r2 and r3, p1 to r1, p2 to r3, and p3 to r1 and two r2 instances.

(a) Find if the system is in a deadlock state.

(b) Otherwise, find a safe sequence.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…