Recent questions tagged turn-variable

2 2 votes
1 1 answer
192
192 views
Consider the following solution for process $P_i$:$\texttt{while (turn != i);}$$\texttt{Critical Section}$$\texttt{turn = j;}$Which of the following statements are correc...
3 3 votes
0 0 answers
796
796 views
Turn is shared variable but the values are not shared.Explain?
1 1 vote
3 3 answers
2.8k
2.8k views
how this solution does not satisfy bounded waiting?// initially turn = 0 while (turn != 0); turn = 1 CS turn = 0
To see more, click for the full list of questions or popular tags.