Skip to interview prep
Apexed

32. What is the difference between a process and a thread?

MediumOS, networking & concurrency

Technical
Show model answer

A process has its own memory space and resources; processes are isolated and communicate through IPC. Threads live inside a process and share its memory, so they are cheaper to create and communicate quickly, but need synchronisation to avoid races.

What is the difference between a process and a thread — Software engineering interview question — Apexed