Cheat sheets

OS-12Cheat sheet1 pageIn a paid pack

Scheduling: FCFS, SJF, SRTF

Scheduling criteria and when the scheduler runs; preemptive versus non-preemptive policies and the dispatcher; completion, turnaround, waiting and response time with their conditions; FCFS, SJF and SRTF timelines and averages on one worked example with a Gantt chart; idle gaps and utilisation; when SJF and SRTF are optimal; predicting the next burst by exponential averaging; and the solved GATE CS 2024 Set 2 Q.37 and 2025 Set 2 Q.26. Every timeline and average was produced by a scheduling simulator.

Diagrams from OS-12

OS-13Cheat sheet1 pageIn a paid pack

Scheduling: RR, Priority, MLFQ

Round robin with a full ready-queue trace and the convention for arrivals at a slice boundary; how the quantum changes the result, up to FCFS; context-switch overhead placed on the timeline with its effect on efficiency; preemptive and non-preemptive priority, starvation and aging; multilevel and multilevel feedback queues with a traced example; highest response ratio next; a comparison of averages; and the solved GATE CS 2026 Set 1 Q.64. All values come from a scheduling simulator.