Skip to content

Scheduling

First In, First Out (FIFO)

  • Most basic algorithm
  • Also know as First Come, First Served (FCFS)
  • Simple to implement
  • Not a great performer

Perfect

Perfect

T_turnaround=10+10+103=10

Bad Performance

Bad

T_turnaround=100+110+1203=110

Shortest Job First (SJF)

SJF

T_turnaround=10+20+1203=50

Round Robin

The basic idea is simple: instead of running jobs to completion, RR runs a job for a time slice (sometimes called a scheduling quantum) and then switches to the next job in the run queue

Advanced Algorithms

All the algorithms discussed are fairly simple and modern operating systems use more advanced data structures such as a multi-level feedback queue to further improve performance!

Released under the MIT License.