Process is a program under execution,but thread is a light weight process which has seperate way of execution.Threads are part of process.Single process can contain number of threads at a time.
Above answer was rated as good by the following members: Vamshidhar
RE: What is the difference between a 'thread' and a 'p...
Process is a program under execution but thread is a light weight process which has seperate way of execution.Threads are part of process.Single process can contain number of threads at a time.
RE: What is the difference between a 'thread' and a 'p...
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 so each application has at least one process and a process always has at least one thread of execution known as the primary thread. A process can have multiple threads in addition to the primary thread
Thread is stream of executable code within process. They are light weight process.
All thread with in a process share process instruction code & data segment open file descriptor signal handler userID and GroupID.
Thread has its own set of register including program counter stack pointer