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

let g(x)=x-3 and h(x)=x^2+6 find (h o g) (1)
2-3 facts about Warsaw Pact
What are the characteristics of mass culture?
which foods earthworms can digest?
lara has a tin of peanuts cashews and pecans she will pick a second nut without looking. how many outcomes are there for her two picks?
wats the 60% off a prize that is $20.00
2-3 facts about Warsaw Pact
Tennis balls with a diameter of 2.5 in. are packaged 3 to a can. The can is a cylinder. Find the volume of the space in the can that is not occupied by tennis b
List all integers between -0.6 and 4.17 THANK U
Six popular brands of tea are to be used in a blind taste study for consumer recognition. If three distinct brands are chosen from the six, and if the consumer