395 views
1 votes
1 votes

which is the correct option?

2 Answers

0 votes
0 votes
I think all options are wrong .
according to me W=X=Z and Y can be other process.

Like W=X=Z=i and Y=j
OR  W=X=Z=j and Y=i

But no option is matching .
0 votes
0 votes

according to algo

repeat 
flag[i] := TRUE; 
turn := j; 
while (flag[j] and turn=j) do no-op; 
CRITICAL SECTION 
flag[i] := FALSE; 
REMAINDER SECTION 
until FALSE;

so it should be i,j,j,i

so look slike D

edited by

No related questions found