15 lines
No EOL
442 B
Markdown
15 lines
No EOL
442 B
Markdown
|
|
Define the following transitions between **Ready to Run** and **Running**:
|
|
|
|
1. **Dispatched**
|
|
2. **Yield**
|
|
3. **Preempted / Timeslice Expired**
|
|
|
|
---
|
|
|
|
🔄
|
|
|
|
1. **Dispatched**: The scheduler selects a "Ready" thread to start running.
|
|
2. **Yield**: The thread voluntarily gives up the processor to let others run.
|
|
3. **Preempted**: The OS forces the thread to stop running (often because its time is up or a higher priority thread arrived).
|
|
|