See how an operating system decides what runs next.
Schedulix is an interactive lab for CPU scheduling. Build a set of processes, pick an algorithm, and step through the Gantt chart while waiting, turnaround, and response times update in real time.
- 9
- scheduling algorithms
- Step
- through every time unit
- Local
- runs in your browser
Round Robin, q = 2
Four processes on one CPU
Avg waiting
5.00
Avg turnaround
9.00
Context switches
8
Why it matters
The invisible engine behind every running program
Performance is scheduling
Every slice of CPU time is handed out by a scheduler. Its choices decide throughput, latency, and how responsive a system feels.
Fairness vs. efficiency
Schedulers constantly trade fairness against overhead and starvation. Seeing those tensions play out builds real systems intuition.
From kernels to the cloud
The same ideas show up in Linux's scheduler, real-time deadline systems, and cluster job schedulers spread across thousands of cores.
Algorithms
Nine scheduling algorithms, one workload
Each policy is implemented with its own preemption, queue, and priority rules, then drawn as a Gantt chart you can play back.
First-Come First-Served
Processes are executed strictly in the order they arrive in the ready queue. Simple and fair in ordering, but suffers from the convoy effect.
Shortest Job First (Non-Preemptive)
Selects the waiting process with the smallest burst time. Optimal average waiting time, but requires knowing burst length and can starve long jobs.
Shortest Remaining Time First (Preemptive SJF)
Preemptive version of SJF. The running process is preempted whenever a new process arrives with a shorter remaining burst time.
Round Robin
Each process receives a fixed time quantum in a cyclic ready queue. Excellent responsiveness and fairness for time-sharing systems.
Priority (Non-Preemptive)
The highest priority process (lowest number) among arrived processes runs to completion. Can cause starvation of low-priority jobs without aging.
Priority (Preemptive)
Preemptive priority scheduling. A newly arrived higher-priority process immediately preempts the running one.
Multilevel Queue
Each priority value is its own queue, and processes never move between queues. Higher-priority queues always run first; within a queue, processes share the CPU Round Robin style using the time quantum.
Multilevel Feedback Queue
Three queues with quanta of q, 2q, and 4q. Every process starts at the top, and one that uses its full quantum drops a level. This approximates SJF without knowing burst times. (This simulator does not apply aging boosts.)
Earliest Deadline First (Real-Time)
Dynamic real-time scheduling that always runs the task with the earliest absolute deadline. Optimal for uniprocessor real-time systems.
Features
A small operating-systems lab in the browser
Step-through simulator
Play, pause, step, and scrub through a schedule while the CPU and ready queue update alongside it.
Gantt charts
Color-coded timelines with a playhead, idle gaps, and per-slice timing on hover.
Side-by-side comparison
Run every algorithm on the same workload and rank them by waiting, turnaround, and response time.
Analytics
Per-process timing, CPU utilization over time, fairness, and how the time quantum changes the result.
Learn and practice
Plain-language guides to each algorithm, plus a bank of common operating-systems interview questions.
Saved simulations
Save, rename, duplicate, and reload workloads. Everything stays in your browser's local storage.
Process lifecycle
Where the scheduler fits
Every process moves through the same states. The CPU scheduler is the part that picks which ready process runs next.
- 1
New
Process is created and admitted.
- 2
Ready
Waiting in the ready queue.
- 3
Running
Dispatched onto the CPU.
- 4
Waiting
Blocked on I/O or an event.
- 5
Terminated
Finished and cleaned up.
“I aim to design systems that bridge low-level computer science concepts with intuitive, human-centered visualization.”
Step inside the scheduler
Build a workload, watch the CPU make each decision, and compare how the classic algorithms handle it.
Open the simulator