Recent questions tagged lock-variable

1 1 vote
1 1 answer
96
96 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
196
196 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
253
253 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
761
761 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.