![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 25.11.2020 14:40 itzdryoshi
What are the disadvantages of Peterson’s solution for critical-section problem? Code below shows the solution to two process mutual exclusion problem.
Process Pi
do {
flag[i] = true;
turn = j;
while (flag[j] && turn == j);
critical section
flag[i] = false;
remainder section
} while (true);
Process Pj
do {
flag[j] = true;
turn = i;
while (flag[i] && turn == i);
critical section
flag[j] = false;
remainder section
} while (true);
Answer True or False to the following questions:
a. This algorithm satisfies the "mutual exclusion", "progress" and "bounded waiting" condition.
b. This algorithm has a flaw as the variable "turn" can be modified by both processes at the same time.
c. This algorithm may cause "deadlock" if both processes set their flags to True at the same time.
d. This algorithm satisfies only the "mutual exclusion" and "progress" condition
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 01:30, giannav57
How do you set up a slide show to play continuously, advancing through all the slides without requiring your interaction? a. click set up slide show, and then select the loop continuously until ‘esc' and show without narration options. b. click set up slide show, and then select the loop continuously until ‘esc' and use timings, if present options. c. click set up slide show, and then select the show presenter view and use timings, if present options. d. click set up slide show, and then select the show without animation and browsed at a kiosk (full screen) options.
Answers: 3
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 11:00, danielcano12281621
Sports and entertainment class, your goal is to increase attendance and make a profit for a game by getting your team on a winning track with total salaries less than $3,000,000
Answers: 3
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 14:30, naomi20044
Select the correct answer. andy received a potentially infected email that was advertising products. andy is at risk of which type of security threat? a. spoofing b. sniffing c. spamming d. phishing e. typo-squatting
Answers: 2
You know the right answer?
What are the disadvantages of Peterson’s solution for critical-section problem? Code below shows the...
Questions in other subjects:
![Konu](/tpl/images/cats/geografiya.png)
Geography, 02.02.2021 04:10
![Konu](/tpl/images/cats/mat.png)
Mathematics, 02.02.2021 04:10
![Konu](/tpl/images/cats/mat.png)
Mathematics, 02.02.2021 04:10
![Konu](/tpl/images/cats/health.png)
Health, 02.02.2021 04:10
![Konu](/tpl/images/cats/istoriya.png)
History, 02.02.2021 04:10
![Konu](/tpl/images/cats/obshestvoznanie.png)
![Konu](/tpl/images/cats/fizika.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 02.02.2021 04:10
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/fizika.png)
Physics, 02.02.2021 04:10