Operating Systems • CPU Process Scheduling

Process Starvation & Aging Technique

Priority Rule: Lower number = Higher priority (1 = Highest, 10 = Lowest)

CPU Execution Slot

ACTIVE & WORKING
No process currently executing
Current Time (t) t = 0
Completed Processes 0

Observed Process: P_low

WAITING IN QUEUE

P_low arrived at t = 0 with Low Priority (10). Notice how the CPU keeps executing other processes while P_low waits indefinitely unless Aging is enabled.

P_low Wait Time 0 ticks
P_low Current Priority 10 (Low)

Ready Queue (Sorted by Priority)

Highest priority process (position #1) is always dispatched to the CPU next.

0 waiting
High Priority (1–3) Medium Priority (4–7) Low Priority (8–10)

Live CPU Execution Timeline (Gantt Chart)

Displays which process occupied the CPU during each time tick.

Scroll horizontally to inspect full history →
Waiting for simulation ticks...

Starvation vs. Deadlock: Key Difference

  • • Deadlock: Processes are mutually blocked waiting for each other's resources. No progress is made.
  • • Starvation: The CPU remains active and productive executing high-priority processes, while a low-priority process (P_low) is perpetually bypassed in the Ready Queue.

How Operating Systems Solve Starvation: Aging

To prevent indefinite blocking, the scheduler applies Aging: the longer a process waits in the Ready Queue without CPU time, the higher its priority becomes. Eventually, P_low reaches High Priority (1) and is guaranteed CPU execution.