Basic Concepts

AlternatingSequence
Alternating sequence of CPU-bursts and I/O-bursts
Histogram
Histogram of CPU-burst duration

Preemptive vs Non-preemptive

Dispatcher

Dispatcher
The role of the dispatcher

Scheduling Criteria

Scheduling Algorithm

FCFS Scheduling

Processes
Chart1
Gantt Chart served by the FCFS policy
Chart2
Gantt Chart served by the FCFS policy

SJF Scheduling

Processes
Chart3
Gantt Chart served by the SJF policy
Prediction
Prediction of the length of the next CPU burst

SRTF Scheduling

Processes
Chart4
Gantt Chart served by the SRTF policy

RR Scheduling

Processes
Chart5
Gantt Chart served by the RR policy when we use a time quantum of 4 milliseconds
TimeContext
How a smaller time quantum increases context switches
TimeTurnaround
How turnaround time varies with the time quantum

Priority base Scheduling

Processes
Chart6
Gantt Chart served by the Priority base policy
Example
Example that combine RR and Priority policy

Multi-Level Queue(MLQ) Scheduling

MLQ
Separate queues for each priority
MLQScheduling
Multi-Level Queue scheduling

Multi-Level Feedback Queue(MLFQ) Scheduling

MLFQ
Multi-Level Feedback Queue scheduling

Thread Scheduling

Real-Time CPU Scheduling