1,420 views
1 votes
1 votes

Consider  the two processes need to access $P_{i}$ and $P_{j}$ need to access the C.S. The following synchronization construct used by both the processes.

Process Pi

While(true){
    j=false;
    i=true;
    while(j==true);
    CRITICAL SECTION
    i=false;
}

 

Process Pj

While(true){
    i=false;
    j=true;
    while(i==true);
    CRITICAL SECTION
    j=false;
}

I got it is not satisfying M.E., but will it satisfying deadlock too??

Plz explain-

2 Answers

Related questions

0 votes
0 votes
0 answers
2
vijaycs asked Jan 26, 2017
625 views
How option B would confirm - Bounded waiting.??
2 votes
2 votes
3 answers
3