in Operating System
315 views
1 vote
1 vote

Please describe the procedure to solve such problems where we have to find deadlock,exclusion,inclusion,progress.

in Operating System
315 views

1 comment

option  D...

 enter the process and check by ur intuition...i suggest u to see the solved problem like this from standard book....
0
0

1 Answer

1 vote
1 vote

P(s) ----------1

P(s) ----------2

<CS>

V(s) ----------3

V(s) ----------4

initially , S = 2

P1   execute  (1) and s become 1 and then P2 will come and execute (1) and s become 0 . Now P1 try to execute step (2)  but get suspended and now if any process will come that will also get suspended. No process will complete their execution and the condition of deadlock will arise.

option D is correct option