Back to interview
interview#os#concurrency

Difference between Process and Thread

An OS fundamentals question every backend engineer must nail.

Jane Contributor August 2, 2026 1 views
interview_qa.md

Question

What is the difference between a process and a thread?

Answer

A **process** is an independent execution unit with its own memory space, file descriptors and system resources. A **thread** is a lightweight execution unit *inside* a process that shares memory with sibling threads. Processes are isolated (crash of one doesn't affect others) but expensive to create and communicate between (IPC required). Threads are cheap and can share state directly, but a bug in one can corrupt the entire process, and shared state requires synchronization (locks, atomics).

See question and answer above.

Keep reading

You may also like

Discussion (0)

No comments yet. Be the first to weigh in.

Leave a comment

Comments are reviewed before appearing.