Purpose - of - Scheduling Notes
Purpose - of - Scheduling Notes
What is scheduling?
Most modern computers will have many processes running at the same time.
Multitasking is the illusion that multiple processes are running at the same
time, even though they are in fact running serially.
Process states
Purpose of scheduling 1
The process currently running on the CPU → Running
Purpose of scheduling 2
Purpose of scheduling
Maximise throughput of processes. → ensuring that the operating system
scheduler efficiently utilises the CPU to execute and complete a significant
number of processes within a specified time period, ultimately enhancing
system productivity.
Maximise the use of the CPU. → : Ensure that we are not waiting for slower
devices (blocked) if there is something else we can do. Keep the CPU actively
engaged by selecting and executing processes in a way that minimizes idle
time.
Ensure fairness for processes. → Distribute CPU time and resources equitably
among competing processes to prevent any single process from monopolizing
system resources.
Be responsive for the end user. → Prioritise the responsiveness of the system
to user inputs, ensuring prompt execution of tasks and a smooth user
experience.
Purpose of scheduling 3
or urgency of each task.
💡 → Deadlock is when items are waiting for a resource which may never
become free. → If a resource is being
continuously used, by one or more processes, leading to one never
getting an opportunity to use then this is known as starvation.
Purpose of scheduling 4