Chapter 2 · OS
Process & Thread Management
6 topics in 2 parts
Key ideas
| Kernel Dimension | User Space Perspective | Kernel Space Perspective |
|---|---|---|
| Privilege Level | Ring 3 (Restricted instruction set) | Ring 0 (Full hardware & MMU access) |
| Context Switch Cost | Zero (stays in thread context) | High (TLB flush, register save to PCB/trapframe) |
| Memory Isolation | Isolated Virtual Address Space | Direct access to physical DRAM & page tables |
| Failure Impact | Process segmentation fault (isolated termination) | Kernel panic / BSOD (system crash) |
All 6 topics in Process & Thread Management
Processes
- Process States & PCB
- Context Switching Mechanics
- fork() and exec() Operations
- Zombie & Orphan Processes
Threads
- Process vs Thread
- Multithreading Models