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
PROCESS:A process will execute the threads(set of instructions), which may contain multiple threads sometimes.
THREAD: It contains a group of instructions that a processor has to do.
Answered By: erw Date: 6/25/2007