in Operating System
1,453 views
1 vote
1 vote

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-

in Operating System
by
1.5k views

4 Comments

1
1

@Satbir. You are right.

@Hirak 

go through this comment--   https://gateoverflow.in/8405/gate2015-3-10?show=93533#c93533

1
1
Okay, i got it, thanks all for your guidance.. :)
0
0

2 Answers

2 votes
2 votes
Best answer

Dead lock is present

selected by
1 vote
1 vote

Solution:-

Related questions