OS Foundations and Process Model
- Syscall boundary and privilege
- Process states and lifecycle
- Fork/exec/exit/wait invariants
- Context switch cost
1 / 6
Privilege boundary
- User mode vs kernel mode
- Syscalls validate inputs
- Interrupts and traps enter kernel
2 / 6
Process state
- RUNNING, READY, BLOCKED, ZOMBIE
- State transitions are explicit
3 / 6
Fork/exec/exit/wait
- Fork duplicates state
- Exec replaces address space
- Exit creates a zombie
- Wait reaps and cleans up
4 / 6
Reparenting
- Orphans are reparented to PID 1
- Ensures zombies can be reaped
5 / 6
What you will build
- Process table simulator
- Correct reaping and reparenting
6 / 6
Use arrow keys or click edges to navigate. Press H to toggle help, F for fullscreen.