404 views
0 votes
0 votes

In this question:- https://gateoverflow.in/8561/gate2015-3-52

In options II III and IV i am not understanding how its violating the rule of circular wait. Rather i feel its creating a circular wait condition. Please Explain….

Any Example would be appreciated.

1 Answer

0 votes
0 votes
suppose there are two processes P1 and P2 then  there are resourses named R1 and R2 which are unordered then the following allocation is done:

A:P1-R1;P2-R2;P1-R2;P2-R1  then we observe that there is  a deadlock condition  and it is having circular wait .

NOW,

R1 IS ASSIGNED NO.=1;

R2 IS ASSIGNED NO.=2;

<II>

Here P2 will not be able to access R1 after accessing R2 as R1<R2;

<III>

Here P1 will not be able to access R2 after accessing R1 as R1<R2;

IV  also has the same explanation.

Related questions

0 votes
0 votes
1 answer
3
0 votes
0 votes
3 answers
4
Vegeta asked Oct 22, 2018
898 views
All safe states are deadlock free. But we can go to deadlock with some combination of sequence? So if the question is, from the safe state can we enter deadlock? Ans shou...