Question d’entretien chez ZS

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

Réponse à la question d'entretien

Utilisateur anonyme

1 juill. 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.