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
Is a class a subclass of itself?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
what are RemoteObjects?
What modifiers may be used with an interface declaration?
How substring() method of string class create memory leaks?
What is the purpose of the finally clause of a try-catch-finally statement?
What are the different approaches to represent an inheritance hierarchy?
Name the eight primitive java types.
What event results from the clicking of a button?
What do you mean by Socket Programming?
What is mdb and what is the special feature of that?
What is Remote Server?
which type of objects reference will be given to client?
What’s jboss cache in short?
What is a class loader? What are the different class loaders used by jvm?