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

Why use a datasource when you can directly specify a connection details? (in a J2EE application)

3437


what is handle?

1840


What is the highest-level event class of the event-delegation model?

562


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?

575


Difference between hashmap and hashtable?

598






What is scalable, portability in the view of J2EE?

1865


Explain about local interfaces.

573


Is “abc” a primitive value?

607


What is ioc concept?

677


whats is statement and procedure

1579


How task's priority is used in scheduling?

1771


What is prototype?

596


When a thread blocks on i/o?

556


Can I use javascript to submit a form?

602


Are we allowed to change the transaction isolation property in middle of a transaction?

553