401 views

1 Answer

0 votes
0 votes
Condition for deadlock: Cycle in resource allocation graph. (assuming single instance of every resource)

But it isn't required that only all the process in cycle are in deadlock. Process outside this cycle can be in deadlock.

Example:

A, B and C are process, X and Y are resource. A has X, B wants it. B has Y and A wants it. C wants X. All process are in deadlock.

Related questions

0 votes
0 votes
0 answers
2
0 votes
0 votes
0 answers
4
admin asked Oct 30, 2019
309 views
Consider Fig. 6-4. Suppose that in step $(o)\: C$ requested $S$ instead of requesting $R.$ Would this lead to deadlock? Suppose that it requested both $S$ and $R.$