Ask Question
18 June, 01:18

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

+4
Answers (1)
  1. 18 June, 01:32
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Does peterson's solution to the mutual-exclusion problem shown in fig. 2-24 work when process scheduling is preemptive ...” in 📗 Biology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers