|
- A thread is a path of execution that run on CPU, a process is a collection of threads that share the same virtual memory. A process has at least one thread of execution and a thread always run in a process context.
-
A process is a collection of virtual memory space, code, data and system resources.
-
A thread is code that is to be serially executed within a process.
-
A processor executes threads, not processes.
-
One more significant difference between process and thread is every process has its own data memory location but all related threads can share same data memory and have their own individual stacks. Thread is a light weighted process, collection of threads become process.
|