CPU scheduling algo
CPU scheduling algo
Disadvantages: Suffers from convoy effect, where short processes wait behind long ones
Practical 1
Advantages: Optimal average waiting time among non-preemptive algorithms
Preemptive: Process can be interrupted when a new process with shorter burst time arrives
code :
Practical 2
Round Robin (RR)
Main concept: Each process gets a small unit of CPU time (time quantum) in a circular
manner
Time quantum: Critical parameter that affects performance (too small: excessive context
switching, too large: degenerates to FCFS)
code :
Practical 3
Practical 4