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
What access modifiers can be used for methods?
What are the two ways to create a thread?
Does isempty check for null?
Can a static member function access member variable of an object?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
What are the methods of object class ?
Difference between this() and super() in java ?
What is the size of integer?
Can a class extend more than one class?
Describe the term diamond problem.
what is deadlock? : Java thread
What does sprintf return?
What is sortedset in java?
What's the difference between an abstract class and interface in java?
What is wrapper class html?