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 the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

1033


Is the infobus client side only?

1114


Is the ternary operator written x : y ? Z or x ? Y : z ?

1114


Which container method is used to cause a container to be laid out and redisplayed?

1139


What is the relation between the infobus and rmi?

1008


What is a session? Can you share a session object between different theads?

983


what are the activation groupworks?

2202


Why a client should be multithreading? Explain.

1091


What is meant by method chaining?

1150


Define aop(assepct oriented programing)?

1182


What is a class loader? What are the different class loaders used by jvm?

1107


What is an abstract method?

1070


What modifiers may be used with an interface declaration?

1137


How are commas used in the intialization and iteration parts of a for statement?

1097


Why doesn’t the focus feature on the tag work in every circumstance?

1109