Introduction
Imagine many people waiting in line to buy tickets. The problem is how to decide who gets served first so everyone is treated fairly and the process runs smoothly.
Imagine a bakery where customers line up to buy bread. The baker serves each customer in the order they arrived, even if some customers want just one loaf and others want many.
┌───────────────┐
│ Process Queue │
├───────────────┤
│ P1 │
│ P2 │
│ P3 │
│ P4 │
└─────┬─────────┘
│
↓
┌───────────────┐
│ CPU │
│ (Executes P1) │
└───────────────┘