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                      
Google
   
 
Categories >> Software >> Operating Systems >> Operating Systems General Concepts
 
 


 

 
 Windows interview questions  Windows Interview Questions (339)
 Linux interview questions  Linux Interview Questions (449)
 Unix interview questions  Unix Interview Questions (455)
 Solaris interview questions  Solaris Interview Questions (781)
 RTOS interview questions  RTOS Interview Questions (43)
 Bulnex interview questions  Bulnex Interview Questions (4)
 Operating Systems General Concepts interview questions  Operating Systems General Concepts Interview Questions (261)
 Data Structures interview questions  Data Structures Interview Questions (66)
 Operating Systems AllOther interview questions  Operating Systems AllOther Interview Questions (47)
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 ?    897 Yes 66 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 ?    326 Yes 94 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 ?    144 Yes 51 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 ?    57 Yes 35 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 ?    48 Yes 65 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 ?    25 Yes 35 No
Kammari.krishnaiah
 
  Re: What is Difference between thread and process?
Answer
# 7
process
threads
 
Is This Answer Correct ?    41 Yes 191 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 ?    83 Yes 37 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 ?    44 Yes 35 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 ?    25 Yes 47 No
Ashish Sharma
 

 
 
 
Other Operating Systems General Concepts Interview Questions
 
  Question Asked @ Answers
 
What are the possible threads a thread can have?   1
What is the difference between Authoritative restore & Non- Authoritative restore? Wipro 1
What is the Difference Between SystemCalls & Interpreter Satyam 1
Thread means? BFL 5
What is an interrupt? How are multiple interrupts dealt with?   1
Advantage of SRAM over DRAM ? Hughes 6
What are demand- and pre-paging?   4
which is best among semaphores and mutexes? HP 2
What is meant by arm-stickiness? Infosys 1
What is DRAM?   5
In general what is paging? and segmaentation? Intelligroup 2
What is the signal? HP 1
 
For more Operating Systems General Concepts Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com