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
How would you detect a keypress in a jcombobox?
What’s jboss cache in short?
Do I need to import javlang package any time? Why ?
What are callback interfaces?
What value does read() return when it has reached the end of a file?
Why does the tag url-encode javascript and mailto links?
int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!
What is the highest-level event class of the event-delegation model?
What classes of exceptions may be caught by a catch clause?
What value does readline() return when it has reached the end of a file?
Is the infobus client side only?
Which container method is used to cause a container to be laid out and redisplayed?
Explain what is orm?
Is the session factory thread safe?
What is the difference between long.class and long.type?