GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Operating System  >  Shell Scripting
Go To First  |  Previous Question  |  Next Question 
 Shell Scripting  |  Question 17 of 47    Print  
What is the difference between a 'thread' and a 'process'?

  
Total Answers and Comments: 7 Last Update: October 13, 2006     Asked by: Beena 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Kotresh
 
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
September 23, 2005 08:01:25   #1  
DEEPU        

RE: What is the difference between a 'thread' and a 'p...
Process is a program in execution whereas thread is a separate path of execution in a program.
 
Is this answer useful? Yes | No
December 02, 2005 13:17:51   #2  
Pardeep Dureja        

RE: What is the difference between a 'thread' and a 'p...
Process & Thread share almost all datastructure except (thread has it's own register & scack area )
 
Is this answer useful? Yes | No
December 04, 2005 23:17:37   #3  
Kotresh        

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.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
February 18, 2006 04:01:00   #4  
sachinp1979 Member Since: February 2006   Contribution: 7    

RE: What is the difference between a 'thread' and a 'p...
Thread is the part of the process when we execute a programm and the process is created when execute a program.
 
Is this answer useful? Yes | No
March 12, 2006 05:23:50   #5  
apmani2006 Member Since: March 2006   Contribution: 3    

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


 
Is this answer useful? Yes | No
September 13, 2006 02:18:09   #6  
vishwa        

RE: What is the difference between a 'thread' and a 'p...
Process is nothing but a program execution each pogram having atleast a sequence where thread is nothing but a sequence of program execution.
 
Is this answer useful? Yes | No
October 13, 2006 08:13:31   #7  
nani        

RE: What is the difference between a 'thread' and a 'p...
Program in execution is called Process
Thread is a flow of control in a program

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape