Process Lifecycle Visualizer

CPU Scheduling & Context Switching Simulator
SYSTEM CLOCK T = 0
CPU IDLE

Process Control Block (PCB) Table

New Ready Running Waiting Terminated
PID State Arrival Burst Remaining I/O Burst Wait Time Turnaround Completion Action

No processes added yet. Add processes using the panel on the left.

Process State Diagram

NEW
0
admitted
READY
0
dispatch
RUNNING
0
I/O request
WAITING
0
I/O done
exit
TERMINATED
0
preempt (RR)

CPU & Context Switch

IDLE
--
Context Switching...
Utilization 0%
Context Switches 0
Throughput 0 proc/tick

Ready Queue

0
Empty

Waiting Queue (I/O)

0
Empty

Gantt Chart – CPU Execution Timeline

Simulation not started. Add processes and click Start.

Simulation Results

FCFS
--
Avg Wait Time
🔄
--
Avg Turnaround
0
Completed
💻
0%
CPU Utilization
↔️
0
Context Switches
🕐
0
Total Time
P1
P2
Context Switch in Progress
Saving state of P1 → Loading state of P2