Recent questions tagged lock-variable

2 2 votes
1 1 answer
107
107 views
Which of the following statements are correct?Both strict alternation and Peterson’s solution use busy waiting. Both strict alternation and Peterson’s solution satisfy th...
4 4 votes
1 1 answer
215
215 views
Two processes use the following symmetric solution:For process $P_i$:$\texttt{flag[i] = TRUE;}$$\texttt{while (flag[j]);}$$\texttt{Critical Section}$$\texttt{flag[i] = FA...
3 3 votes
1 1 answer
275
275 views
Consider the following entry and exit code used by two processes:$\texttt{while(lock);}$$\texttt{lock = TRUE;}$$\texttt{Critical Section}$$\texttt{lock = FALSE;}$Initiall...
0 0 votes
1 answers 1 answer
766
766 views
In lock variable mechanism of the following modified code , if we execute the code then can mutul exclusion be satisfied.??1. Load Ri , M[lock]2. cmp Ri, # 03. store # ...
To see more, click for the full list of questions or popular tags.