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 |
How is a structure different from array ?
When should a function throw an exception?
0 Answers Thomson Reuters, Virtusa,
Matrix multiplication only using OOP concepts .
What is garbage collection in Java, and how can it be used ?
32 Answers Accenture, HCL, Infosys, Sara, SITS, TCS, Wipro,
Why java doesn’t support multiple inheritances?
What is string pool in java?
What are streams?
Suppose there is a System A which gives some output. This output is used as input by system B. The rate at which System A produces is faster than the rate at which system B consumes it. How can you improve this?
Tell me the latest versions in java related areas?
Can we have a method name same as class name in java?
What are the 2 types of java programs?
what is synchronization and why is it important? : Java thread