CPU Scheduling is a process of determining which process will own CPU for execution while another process is on hold. The main task of CPU scheduling is to make sure that whenever the CPU remains idle, the OS at least select one of the processes available in the ready queue for execution.
CPU scheduling technique that works by dividing time slots of cpu to a given process.
Example:- SRTF(Shortest Remaining Time First) , RR (Round Robin)
CPU scheduling technique in which process takes resource and hold it till the process gets terminated.
Example:- FCFS(First Come First Served) , SJF(Shortest Job First)