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

when solving a real-world problem to find a persons age , would a negative solution make sense ?
A ruler is marked at every 1/16!inches. Do the labeled measurements convert to terminating or reapeating decimals
Michael wanted to measure the temperature of an object. Which SI unit should he use? a. milliliter b. kilogram c. Fahrenheit d. Kelvin
What steps might a scientists take when he or she tests a hypothesis
Help! if a store offers 3 for the price of 2. What is the implied discount? a. 20% b. 33% c. 40% d. 66%
How to tell if a fraction is proportional
National governments have more power than any other human institution in the world. Why do you think this is the case?
X is at most 30 so whats the answer
National governments have more power than any other human institution in the world. Why do you think this is the case?
23,697 round to the nearest ten thousand