Curated infographic guide for process concepts, PCB structure, state models, and threads.
A process moves through various states during its lifecycle:
| Characteristic | Process | Thread (LWP) |
|---|---|---|
| Memory Space | Separate address space per process | Shared address space (code, data, resources) |
| Creation Overhead | Heavyweight (system calls, copy descriptors) | Lightweight (shares resources, cheap stack creation) |
| Communication | Requires IPC (Pipes, Shared Memory, Sockets) | Trivial (can write to shared global variables directly) | Protected (one crash does not affect others) | Shared (one thread crash can take down whole process) |
| Context Switch | Slow (page table swap, TLB flush) | Very fast (only register swap, keeps same page table) |