michealafolorun2334 michealafolorun2334
  • 02-10-2017
  • Biology
contestada

Does peterson's solution to the mutual-exclusion problem shown in fig. 2-24 work when process scheduling is preemptive

Respuesta :

W0lf93
W0lf93 W0lf93
  • 13-10-2017
Yes. Not only does Peterson's Solution work with preemptive scheduling, but it was designed for that very case. In fact, when scheduling is non-preemptive, there is a possibility it might fail. For example, in a case where 'turn' is initially 0, but process 1 runs first, it will loop perpetually, and never release the CPU.
Answer Link

Otras preguntas

What is amnesia?? I know one person who have this... :/
A King in ancient times agreed to reward the inventor of chess with one grain of wheat on the first of the 64 squares of a chess board. On the second square the
From sentencesof prendre,with theapprendreconjugated form.and comprendre​
When the source of a wave is moving relative to an observer of the wave, which of the following is true? o observers ahead of the wave observe an apparent incre
the difference between close and open circuit using ohms law​
90 juniors took different SAT-II tests. 40% more students took Chemistry than History, and 50% more students took Math than Chemistry. How many students took ea
Please answer the attached question by selecting of the the given answers.
Use dimensional analysis to convert the width of a bedroom to feet if it measures 132 inches.
Which of the following elements is most likely to form a +1 charge?ClMgNaLi
PLEASE HURRY I NEED HELP SOS!!!! (10 POINTS)verify sin(360º-ø)=-sinø