what is the difference between multitasking and
multithreading?
Answers were Sorted based on User's Feedback
Answer / mayuri patil
u can say multi threading as a specilized form of multitasking.
A multi threaded program contains 2 or more threads running concurently.
in a multitasking environment 2 or more processes will run concurently.
Multithreading requires less overhead than multitasking,
process are hevyweight tasks that require their own addressspace.
interprocess communication is veryexpensive and contextswitching
from one process to another procees is costly since they are running
in different address spases.
in case of multithreading threads are lightweightprocess and
can share same addressspace and interthread communication is less expensive
than interprocees
| Is This Answer Correct ? | 0 Yes | 0 No |
What do you understand by garbage collection in Java? Can it be forced to run?
What is Servlet?
What is the difference between static class and normal class?
Is 0 true or false in java?
What is the catch or declare rule for method declarations?
What is the use of parseint in java?
How can two threads be made to communicate with each other?
Is there any case when finally will not be executed?
Can singleton class be cloned?
Are the equals() and hashCode() protected methods of object class?
What is the applet security manager, and what does it provide?
What is the difference between the direct buffer and non-direct buffer in java?