Application of Data Structure
Application of Data Structure
CPU scheduling
Whenever the CPU becomes idle, the operating system must select
one of the processes in the ready queue to be executed.
The selection process is carried out by the short-term scheduler
(or CPU scheduler).
The scheduler selects from among the processes in memory that
are ready to execute, and allocates the CPU to one of them.
Switching context
Switching to user mode
Jumping to the proper location in the user program to restart that
program from where it left last time.