ALLInterview.com :: Home Page
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
   
 
Categories  >>  Software  >>  Operating Systems  >>  Operating Systems General Concepts
 
 


 

 
 Windows interview questions  Windows Interview Questions
 Linux interview questions  Linux Interview Questions
 Unix interview questions  Unix Interview Questions
 Solaris interview questions  Solaris Interview Questions
 RTOS interview questions  RTOS Interview Questions
 Bulnex interview questions  Bulnex Interview Questions
 Operating Systems General Concepts interview questions  Operating Systems General Concepts Interview Questions
 Data Structures interview questions  Data Structures Interview Questions
 Operating Systems AllOther interview questions  Operating Systems AllOther Interview Questions
Question
What is Difference between thread and process?
 Question Submitted By :: Leossk
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is Difference between thread and process?
Answer
# 1
The major difference between threads and processes is 
1.Threads share the address space of the process that 
created it; processes have their own address.

2.Threads have direct access to the data segment of its 
process; processes have their own copy of the data segment 
of the parent process. 

3.Threads can directly communicate with other threads of 
its process; processes must use interprocess communication 
to communicate with sibling processes. 

4.Threads have almost no overhead; processes have 
considerable overhead.

5.New threads are easily created; new processes require 
duplication of the parent process.

6.Threads can exercise considerable control over threads of 
the same process; processes can only exercise control over 
child processes. 

7.Changes to the main thread (cancellation, priority 
change, etc.) may affect the behavior of the other threads 
of the process; changes to the parent process does not 
affect child processes. 
 
Is This Answer Correct ?    687 Yes 52 No
Swetcha
[Semanticspace]
 
  Re: What is Difference between thread and process?
Answer
# 2
Process is a program in execution where as thread is a 
seperate path of execution in a program.
 
Is This Answer Correct ?    252 Yes 72 No
Janet
 
 
 
  Re: What is Difference between thread and process?
Answer
# 3
process is a execution of a program and program contain set 
of instructions but thread is a single sequence stream 
within the process.thread is sometime called lightweight 
process. single thread alows a os to perform singler task 
ata time similarities between process and threads are: 
1)share cpu. 
2)sequential execution 
3)create child 
4)if one thread is blocked then the next will be start to 
run like process. 
dissimilarities: 
1)threads are not independent like process. 
2)all threads can access every address in the task unlike 
process. 
3)threads are design to assist onr another and process 
might or not might be assisted on one another.
 
Is This Answer Correct ?    110 Yes 44 No
Munshimubbi
 
  Re: What is Difference between thread and process?
Answer
# 4
Technically, a thread is defined as an independent stream 
of instructions that can be scheduled to run as such by the 
operating system.
So, in summary, in the UNIX environment a thread: 
o	Exists within a process and uses the process 
resources 
o	Has its own independent flow of control as long as 
its parent process exists and the OS supports it 
o	Duplicates only the essential resources it needs to 
be independently schedulable 
o	May share the process resources with other threads 
that act equally independently (and dependently) 
o	Dies if the parent process dies - or something 
similar 
o	Is "lightweight" because most of the overhead has 
already been accomplished through the creation of its 
process. 


Whereas in case of process, every process has its own 
memory management, two process cannot communicate without 
using IPCS or Sockets, they do not share resources and 
every process has its own process ID(pid).
 
Is This Answer Correct ?    43 Yes 28 No
Ankit Tripathi
 
  Re: What is Difference between thread and process?
Answer
# 5
simply say thread is a light weight process(flow of
execution throw the process code)....
  but process is heavy  weight(heavey weight) process
 
Is This Answer Correct ?    37 Yes 56 No
6209
[Jslan]
 
  Re: What is Difference between thread and process?
Answer
# 6
A programm  in execution,as mentioned is a process.A time
share user program such as a complier is a process.
A thread is contain a peace of code  and each processor
contain the one or more threads.
 
Is This Answer Correct ?    21 Yes 31 No
Kammari.krishnaiah
 
  Re: What is Difference between thread and process?
Answer
# 7
process
threads
 
Is This Answer Correct ?    31 Yes 153 No
Santhi
 
  Re: What is Difference between thread and process?
Answer
# 8
A Thread is a smallest execution unit of the Process.
While a process can have multiple threads.
 
Is This Answer Correct ?    65 Yes 32 No
Purushottam Kumar
 
  Re: What is Difference between thread and process?
Answer
# 9
process is a program in execution whereas thread is a light
wight process and has separate path.
 
Is This Answer Correct ?    37 Yes 28 No
G.siva Ganesh,thondangi
 
  Re: What is Difference between thread and process?
Answer
# 10
Process is a seprate one and a thread is pa part of any process .Process can't communicate other processes but thread do it easily
 
Is This Answer Correct ?    20 Yes 38 No
Ashish Sharma
 

 
 
 
Other Operating Systems General Concepts Interview Questions
 
  Question Asked @ Answers
 
What is a binary semaphore? What is its use? Morgan-Stanley6
How to find the number of sockets created in your system? CA1
What is spooling? and What is spooled device? Give the examples for the spooled devices?  1
What is Dirty bit? What is the role/purpose of dirty bit?  1
What are the possible threads a thread can have?  1
Differentiate between Complier and Interpreter?  2
what is assembler?  4
What is the difference between hard and soft real-time systems?  4
What are local and global page replacements? TCS3
We are having two seperate LANs(seperate workgroups) in our company. And configured mail server(Mail domain) in windows 2003 std server in each LAN seperately. And created user mail Ids also. Both servers working fine, and able to send mails with in the LAN. Let me know how we can able to send mail from one mail domain to second mail domain. HCL1
Explain about paged segmentation and segment paging?  3
What is cache memory?  2
 
For more Operating Systems General Concepts Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2010  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com