1,425 views
0 votes
0 votes

P0

wait(s); wait(q);

Signal (s); signal(q);...

P1[

wait(q);wait(s);}

signal(q);signal(s);....

whether progress is guarnteed or not ???

2 Answers

0 votes
0 votes
Progress is not guaranteed I think bcz P0 will do down operation on s and q,so when  P0 is in critical section for a very long time P1 have to wait for arbitrary time until P0 releases s and q.When a process is stopping other process from executing then we say there is no progress.correct me if I'm wrong..
0 votes
0 votes
Progress is not guarnteed, consider the case when both processes arrive simultaneously.P1 sets S to 0 and P2 sets to 0.Hence further they enter deadlock situation hence no process gets to use critical section.

correct me if I am wrong.

Related questions

0 votes
0 votes
0 answers
1