in Operating System
359 views
0 votes
0 votes

Peterson’s Solution meets all three requirements; solves the critical section problem for two processes

 Can be extended to n processes by pairwise mutual exclusion – too costly

what does pairwise mutual exclusion meant here?

ref:- http://cse.iitkgp.ac.in/~agupta/OS/IPC.pdf page#20

in Operating System
359 views

4 Comments

@Shaik Masthan

thanks for the links.

so, you are saying that n process peterson's solution and bakery algorithm are the same thing?

0
0

you are saying that n process peterson's solution and bakery algorithm are the same thing?

no... i hope in n-process Peterson's solution, in the while loop they check the condition of flag and turn variable of every process...

So, they simply came to the bakery algo with small modifications

0
0

@Shaik Masthan

ok thanks

0
0

Please log in or register to answer this question.

Related questions