- #1
shivajikobardan
- 674
- 54
- Homework Statement
- How's bounded waiting achieved in here?
- Relevant Equations
- How's bounded waiting achieved in here?
I understand how mutual exclusion is achieved here. But not sure how bounded waiting is achieved here.
This question has also been answered here but not properly imo. So, I'm asking this again here.
https://stackoverflow.com/questions/41590276/how-does-this-code-section-maintain-bounded-waiting
Code:
P_i:
do
{
while(turn!=i);
critical section
turn=j;
remainder section
while(1);
}
This question has also been answered here but not properly imo. So, I'm asking this again here.
https://stackoverflow.com/questions/41590276/how-does-this-code-section-maintain-bounded-waiting