in Operating System
704 views
1 vote
1 vote

Will it causing deadlock? How do we fixed it?

P1:                                   P2:

Wait(S);                               Wait(Q);                     
Wait(Q);                               Wait(S);
........                               .............
Signal(S);                             Signal(Q);
Signal(Q);                             Signal(S);

 

in Operating System
by
704 views

4 Comments

@Tesla!

Is there any problem in Magma's solution? It will be deadlock free right? Please check once.

0
0
Magma answer won't have a deadlock its also one of the possible solution.
0
0

yeah there is no problem in @Magma solution. 

0
0

Please log in or register to answer this question.

Related questions