What is the practical difference between a process and a thread, and why is context switching between threads cheaper?
If threads share heap memory and open file descriptors, what is the biggest reliability risk compared to multi-process architectures like Chrome tabs?
What the Rubric Checks
- • Identifies shared vs private memory spaces accurately
- • Explains TLB flush and address-space overhead in process switching
- • Highlights fault isolation vs communication overhead trade-off
High-Scoring Answer Blueprint
A process has an isolated virtual address space, PCB, and resources; threads within a process share code, heap, and file descriptors while keeping their own stack and registers. Thread context switches avoid switching page tables and flushing the TLB, making them faster — at the cost of weaker fault isolation.