ALLInterview.com :: Home Page KalAajKal.com
 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   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  OOPS
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
Describe the difference between a Thread and a Process?
 Question Submitted By :: Gvsk
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Describe the difference between a Thread and a Process?
Answer
# 1
We can have multiple threads in a single process.Thus we 
can say threads are working units of a process.
 
Is This Answer Correct ?    6 Yes 0 No
Guest
 
  Re: Describe the difference between a Thread and a Process?
Answer
# 2
1)
process is self loadable
while
thread is depends on operating system

2)
communication is possible between processes through some 
mechanism
ex:shared memory, message queues
communication is possible between threads directly
 
Is This Answer Correct ?    4 Yes 2 No
Subbu
 
 
 
  Re: Describe the difference between a Thread and a Process?
Answer
# 3
A thread is building block of process, there can be 
multiple thread or at least one thread per process.
Process is self loadable but thread need a process to run.
 
Is This Answer Correct ?    3 Yes 1 No
Anshu
 
  Re: Describe the difference between a Thread and a Process?
Answer
# 4
Thread uses shared memory. But process uses different 
memory.
 
Is This Answer Correct ?    1 Yes 1 No
P Suresh Kumar
 
  Re: Describe the difference between a Thread and a Process?
Answer
# 5
We can execute a process (EXE) but threads can be created 
and executed from inside a process
 
Is This Answer Correct ?    3 Yes 0 No
Nk
 
  Re: Describe the difference between a Thread and a Process?
Answer
# 6
Thread is a path for execution and the executable which is 
running is called a process.
 
Is This Answer Correct ?    0 Yes 0 No
Pds
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
what are the disadvantages of C++? ATS4
What is multiple inheritance ? Ness-Technologies8
What is a template?  5
what is a virtual class? Cap-Gemini1
Which is the parameter that is added to every non-static member function when it is called?  3
What is a linked list? IBM4
What are generic functions and generic classes?  2
Should you protect the global data in threads? Why or why not? IBM1
wht is major diff b/w c and c++?  3
i ahve v low % in 12th n BSC which is aroun 50 coz science was imposed on me......nw m doin MCA n my aggregate in above 74%,what shud i say if asked about low previous percentage??????  3
why destructor is not over loaded?  2
what is virtual destructor TCS5
In which cases you use override and new base?  1
What are virtual functions?  2
What is the output of the following code: int v() { int m=0; return m++; } int main() { cout<<v(); } 1) 1 2) 0 3) Code cannot compile  3
What is Iteration Hierarchy? What is what is Object behavioral concept?  1
Have you ever used threads? IBM2
What does the code "cout<<(0==0);" print? 1) 0 2) 1 3) Compiler error: Lvalue required  5
What is the difference between and interface and an abstract class ? Ness-Technologies2
to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123  1
 
For more OOPS Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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