Google News
logo
Linux - Interview Questions
What is the difference between a process and a thread in Linux?
In Linux, processes are the independent program, while a thread is the unit of execution. So here are the complete differences between process and thread :

Comparison Factors Process Thread
Creation time Creation time is higher Creation time is less.
Dependency It is independent because it does not share memory. It depends on other threads because they share some memory with other threads.
Resource Resource use is higher Requires lesser resources
Termination time The termination time is higher The termination time is less.
Advertisement