Interactive CPU Scheduling Lab

Round Robin vs Priority Scheduling

Round Robin and Priority in detail, plus FCFS, SJF and SRTF for comparison. Pick an example on the left, change any number, and the results update on the right.

Opens the Timeline and starts playing
Result at a glance

Add a process to see results.

This tab shows who got the CPU and when. Press Play to watch it step by step, then read the two charts below. Each colored block is one process using the CPU.

Algorithm 1
Round Robin
Algorithm 2
Priority Scheduling

There are no processes yet, so there is nothing to show.

Per-process numbers for the two main algorithms. Wait, turnaround and response are all "lower is better". Tap or hover any column title for its meaning.

There are no processes yet, so there is nothing to show.

A short, plain-language comparison of Round Robin and Priority on the setup you chose. Every number here is computed from your processes.

There are no processes yet, so there is nothing to show.

These checks run the simulator on known workloads and compare the output with hand-worked answers. Open one to see its inputs and result.

Pre-Built Test Scenarios (7)

Click a scenario to expand it. Use Load & Run to populate the simulator with that scenario's data and immediately run both algorithms.

The same processes run through all five algorithms, side by side. The green number is the best in its column.

There are no processes yet, so there is nothing to show.

How to use this simulator

It shows how a CPU decides which process runs next, and compares five scheduling methods on the same list of processes.

  1. Pick an example in the left panel, or press "Add a process" to build your own list.
  2. Edit the numbers. Arrives at is when the process shows up, Needs is how long it must run, Priority 1 is the most urgent.
  3. Set the time slice (quantum) for Round Robin. Each process runs at most this long before the next one gets a turn.
  4. Read "Result at a glance". It compares all five algorithms. The green number is the best in its column. Lower is better for wait, turnaround and response.
  5. Open the Timeline tab to see who ran when. Gray blocks marked IDLE mean the CPU had nothing to run. Press Replay to watch it again.
  6. Open Numbers, Verdict and All 5 algorithms for per-process details and a short written comparison.

Everything updates as you type. Nothing is sent anywhere; the page only remembers that you closed the welcome note. Time units are abstract (not seconds).