Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged peterson-algorithm
4
4 votes
1
1 answer
164
164 views
GO Classes DPP | GATE CS | Operating System | Peterson’s Algorithm
Consider the following alternative entry code for process $P_i$:$\texttt{wants[i] = 1}$;$\texttt{while(wants[1 - i]);}$The shared array $\texttt{wants}$ is initially:$\te...
GO Classes
164
views
asked
Jul 29
Operating System
goclasses
goclasses-cs-dpp
operating-system
goclasses-cs-dpp-day-333
goclasses-os-practice-questions
peterson-algorithm
+
–
2
2 votes
1
1 answer
121
121 views
GO Classes DPP | GATE CS | Operating System | Peterson's Solution
Two threads execute Peterson’s entry code. The following statements execute in this exact order:$T_0:$ $\texttt{flag[0] = true}$$T_0:$ $\texttt{turn = 1}$$T_1:$ $\texttt{...
GO Classes
121
views
asked
Jul 29
Operating System
goclasses
goclasses-cs-dpp
operating-system
goclasses-cs-dpp-day-333
goclasses-os-practice-questions
peterson-algorithm
+
–
4
4 votes
1
1 answer
149
149 views
GO Classes DPP | GATE CS | Operating System | Peterson's Algorithm
Consider the following variation of Peterson’s algorithm for process $P_i$:$\texttt{flag[i] = TRUE;}$$\texttt{turn = i;}$$\texttt{while(flag[j] \&\& turn == j);}$$\texttt...
GO Classes
149
views
asked
Jul 29
Operating System
goclasses
goclasses-cs-dpp
operating-system
goclasses-cs-dpp-day-333
goclasses-os-practice-questions
peterson-algorithm
multiple-selects
+
–
2
2 votes
1
1 answer
127
127 views
GO Classes DPP | GATE CS | Operating System | Peterson vs Alternation
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...
GO Classes
127
views
asked
Jul 29
Operating System
goclasses
goclasses-cs-dpp
operating-system
goclasses-cs-dpp-day-333
goclasses-os-practice-questions
peterson-algorithm
lock-variable
multiple-selects
+
–
7
7 votes
1
1 answer
198
198 views
GO Classes DPP | GATE CS | Operating System | Peterson's Solution
Which of the following statements about Peterson’s solution are correct?Peterson’s solution uses atomic load and store operations. Peterson’s solution directly supports a...
GO Classes
198
views
asked
Jul 29
Operating System
goclasses
goclasses-cs-dpp
operating-system
goclasses-cs-dpp-day-333
goclasses-os-practice-questions
peterson-algorithm
multiple-selects
+
–
4
4 votes
1
1 answer
249
249 views
GO Classes DPP | GATE CS | Operating System | Peterson’s Solution
Two processes $P_i$ and $P_j$ use Peterson’s solution:$\texttt{flag[i] = TRUE;}$$\texttt{turn = j;}$$\texttt{while(flag[j] \&\& turn == j);}$$\texttt{Critical Section}$$\...
GO Classes
249
views
asked
Jul 27
Operating System
goclasses
goclasses-cs-dpp
operating-system
goclasses-cs-dpp-day-332
goclasses-os-practice-questions
peterson-algorithm
process-synchronization
numerical-answers
+
–
6
6 votes
1
1 answer
1.8k
1.8k views
GATE Overflow | Operating Systems | Test 1 | Question: 2
Consider Peterson's algorithm for Mutual Exclusion between two concurrent processes $w$ and $f$. The program executed by the processeses are shown below:Process wProcess ...
Bikram
1.8k
views
asked
Sep 3, 2016
Operating System
go-os-1
operating-system
process-synchronization
peterson-algorithm
two-marks
+
–
To see more, click for the
full list of questions
or
popular tags
.