Introduction
Imagine using a computer where programs freeze or take too long to respond. The way the system decides which program runs and when directly affects how quickly it reacts to your actions.
Imagine a busy restaurant kitchen where the chef must prepare many dishes. The chef decides which dish to cook first, how long to spend on each, and which urgent orders to prioritize. If the chef manages this well, customers get their food quickly and the kitchen runs smoothly.
┌───────────────┐
│ Scheduler │
├───────────────┤
│ Task Queue │
├───────────────┤
│ Time Slices │
├───────────────┤
│ Priorities │
└──────┬────────┘
│
↓
┌───────────────┐
│ Processor │
└───────────────┘