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
Why use a datasource when you can directly specify a connection details? (in a J2EE application)
what is handle?
What is the highest-level event class of the event-delegation model?
In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
Difference between hashmap and hashtable?
What is scalable, portability in the view of J2EE?
Explain about local interfaces.
Is “abc” a primitive value?
What is ioc concept?
whats is statement and procedure
How task's priority is used in scheduling?
What is prototype?
When a thread blocks on i/o?
Can I use javascript to submit a form?
Are we allowed to change the transaction isolation property in middle of a transaction?