Jump to content

How's bounded waiting achieved here?

shivajikobardan

 


I understand how mutual exclusion is achieved here. But not sure how bounded waiting is achieved here.


 

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

A course that I purchased from Prateek Jain Academy is telling "because of progress, bounded waiting is not happening". But I'm unable to understand it.

Link to comment
Share on other sites

Link to post
Share on other sites

-= Topic Moved to Programming =-

COMMUNITY STANDARDS   |   TECH NEWS POSTING GUIDELINES   |   FORUM STAFF

LTT Folding Users Tips, Tricks and FAQ   |   F@H & BOINC Badge Request   |   F@H Contribution    My Rig   |   Project Steamroller

I am a Moderator, but I am fallible. Discuss or debate with me as you will but please do not argue with me as that will get us nowhere.

 

Spoiler

  

 

Character is like a Tree and Reputation like its Shadow. The Shadow is what we think of it; The Tree is the Real thing.  ~ Abraham Lincoln

Reputation is a Lifetime to create but seconds to destroy.

You have enemies? Good. That means you've stood up for something, sometime in your life.  ~ Winston Churchill

Docendo discimus - "to teach is to learn"

 

 CHRISTIAN MEMBER 

 

 
 
 
 
 
 

 

Link to comment
Share on other sites

Link to post
Share on other sites

This is not peterson's solution. This is an attempt to solve the CS problem, this doesn't solve it.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×