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
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
Is the infobus client side only?
Is the ternary operator written x : y ? Z or x ? Y : z ?
Which container method is used to cause a container to be laid out and redisplayed?
What is the relation between the infobus and rmi?
What is a session? Can you share a session object between different theads?
what are the activation groupworks?
Why a client should be multithreading? Explain.
What is meant by method chaining?
Define aop(assepct oriented programing)?
What is a class loader? What are the different class loaders used by jvm?
What is an abstract method?
What modifiers may be used with an interface declaration?
How are commas used in the intialization and iteration parts of a for statement?
Why doesn’t the focus feature on the tag work in every circumstance?