what is the difference between multitasking and
multithreading?
Answer Posted / geetha.v
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.
Interprocess communication is very expensive
and context switching from one process to another procees
is costly since they are runningin 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 ? | 40 Yes | 6 No |
Post New Answer View All Answers
Explain what is encapsulation?
What are void methods?
What is a class in java?
Explain the difference between abstract classes and interfaces in java?
Where are local variables stored?
What is difference between fail-fast and fail-safe?
Difference between this() and super() in java ?
What is callable java?
Can we sort hashset in java?
What kind of variables a class can consist of?
Explain about sets?
What access modifiers can be used for variables?
What are basic keywords?
How can you write a loop indefinitely in java programming?
What is data member in java?