Ask Question
28 September, 18:22

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

+4
Answers (1)
  1. 28 September, 19:21
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers