420 views
0 votes
0 votes
A:                                                                 B:

while true do                                                  while true do

{                                                                       {  

wait(p);                                                               wait(p);

wait(q);                                                               wait(q);

x=x+1;                                                                y=y+1;

y=y-1;                                                                 x=x-1;

signal(p);                                                            signal (q);

signal(q);                                                            signal(p);

}                                                                          }

Two processes A and B, Is bounded guaranteed , if yes then how ?

Please log in or register to answer this question.

No related questions found