What is the difference between a 'thread' and a 'process'?

Questions by Beena   answers by Beena

Showing Answers 1 - 7 of 7 Answers

DEEPU

  • Sep 23rd, 2005
 

Process is a program in execution whereas thread is a separate path of execution in a program.

  Was this answer useful?  Yes

Pardeep Dureja

  • Dec 2nd, 2005
 

Process & Thread share almost all datastructure except (thread has it's own register & scack area )

  Was this answer useful?  Yes

Kotresh

  • Dec 4th, 2005
 

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.

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 

 

  Was this answer useful?  Yes

vishwa

  • Sep 13th, 2006
 

Process is nothing but a program execution, each pogram having atleast a sequence, where thread is nothing but a sequence of program execution.

  Was this answer useful?  Yes

nani

  • Oct 13th, 2006
 

Program in execution is called Process
Thread is a flow of control in a program

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions