Q3. Explain Fixed Priority Scheduling.
Ans. Fixed priority scheduling, (that is, serve all from foreground then from background). This may cause the possibility of starvation.
Let us take an example with five queues:
- System Processes
- Interactive Processes
- Interactive Editing Processes
- Batch Processes
- Student Processes
Each queue has absolute priority over lower priority queue. No process in the lower priority queue could run unless the queues for higher priority systems were all empty. Like, if an interactive process entered the ready queue while a batch process was running, the batch process would be preempted.
Figure: Multilevel Queue Scheduling