ZS interview question

Q: Explain the difference between a process and a thread.

Interview Answer

Anonymous

1 Jul 2026

A process is an independent program in execution with its own memory space and system resources, while a thread is the smallest unit of execution within a process. Multiple threads of the same process share the same memory and resources, making thread creation and communication faster than processes. Processes provide better isolation, whereas threads are more efficient for concurrent tasks.