9618/32 October/November 2022 · Question 9(a) · 3 marks
Explain why an operating system needs to schedule processes.
Points that gain marks
- So that several programs seem to run at the same time (multitasking).
- So that high-priority jobs are completed first.
- To keep the CPU busy all the time, so all processes run efficiently.
- To reduce waiting times and give every process fair use of the CPU, so no process waits for ever (starvation).
In this lab: The race table in free mode compares the average waiting time of each algorithm on the same processes.