Chapter 3: Problem 40
A process that is waiting for a time slice is said to suffer starvation if it is never given a time slice. a. The pavement in the middle of an intersection can be considered as a nonshareable resource for which cars approaching the intersection compete. A traffic light rather than an operating system is used to control the allocation of the resource. If the light is able to sense the amount of traffic arriving from each direction and is programmed to give the green light to the heavier traffic, the lighter traffic might suffer from starvation. How is starvation avoided? b. In what sense can a process starve if the dispatcher always assigns time slices according to a priority system in which the priority of each process remains fixed? (Hint: What is the priority of the process that just completed its time slice in comparison to the processes that are waiting, and consequently, which routine gets the next time slice?) How, would you guess, do many operating systems avoid this problem?
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.