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
Explain about thread synchronization inside a monitor?
What is the difference between the font and fontmetrics classes?
What is the diffrence between a local-tx-datasource and a xa-datasource?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
What are the purpose of introspection?
which type of objects reference will be given to client?
What do you mean by Socket Programming?
What is a clone?
What are the different methods of identifying an object?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
What is in-memory replication?
what are RemoteObjects?
For which statements does it make sense to use a label?
In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?
What do you know about seam?