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

Answers were Sorted based on User's Feedback



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

Answer / swaroopa

Process is a program in execution whereas thread is a
separate path of execution in a program. Process & Thread
share almost all datastructure except (thread has it's own
register & stack area). 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.

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

Is This Answer Correct ?    3 Yes 0 No

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

Answer / seshadri sethi

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

Is This Answer Correct ?    1 Yes 0 No

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

Answer / satchi

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

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Shell Script Interview Questions

what does "kill -9" and "kill -1" do

2 Answers   Amazon,


What is an sh file?

0 Answers  


What are filters explain sort with all the options available?

0 Answers  


What is a file basename?

0 Answers  


What is meant by dos operating system?

0 Answers  






In which variable prompt value is stored?

2 Answers  


What is a shell made of?

0 Answers  


What is shell scripting used for?

0 Answers  


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

3 Answers  


Hi Friends, I am currently Undergoing Course On Testing.I am Planning To Keep Fake Resume.Can any One tell me the ways to Prepare i.e, Real Time experience For Manual Testing. With Regards, Vikram

1 Answers  


What does sh mean?

0 Answers  


how to search for vowels a,e,i,o,u appearing in the same sequence in a file

4 Answers   Amazon,


Categories