Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between Process and Threads?

Answer Posted / shani kr. gupta

Process is a program in execution.
Suppose there r two processes that means that occurs at
different-different memory location. and the context
switching b/w process is more expensive.bcz it will take
more time from one memory allocation to other memory
allocation.that is why Process is called HEAVY WEIGHT PROCESS.


Thread is smallest part of program.and It is independent
sequential path of execution with in a program.
Suppose there r two threads that means that occurs at same
memory location bcz of smallest part of program.
and the context switching b/w threads is less expensive
rather than process.that is why Thraed is called Light
WEIGHT PROCESS.

Is This Answer Correct ?    84 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mdb and what is the special feature of that?

1045


what is handle?

2353


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

2194


Why use a datasource when you can directly specify a connection details?

1013


What are the design considerations while making a choice between using interface and abstract class?

1073


What are the sequence of steps to write pub or sub model kind of application?

2506


What is the purpose of the notify() method?

1051


Write a program to show synchronization?

1123


What is a sessionfactory? Is it a thread-safe object?

1205


What are the difference between RMI and CORBA?

1099


how do you Handle Front End Application data against DB with example?

1968


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

4245


What is TL and its use?

2449


wahts is mean by dynavalidatorform in struts/

2053


What is the difference between RMI registry and OS Agent?

1124