what is the difference between multitasking and
multithreading?
Answer Posted / 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 |
Post New Answer View All Answers
Can we assign integer value to char in java?
Is array a class in java?
what is encapsulation in java? Explain
What is a functional interface?
What is the use of protected in java?
What is the difference between method overriding and overloading?
What do you mean by global variable?
what methods would you overwrite in java.lang.object class?
define polymorphism in java
What is string length in java?
What is used of static keyword in java?
Explain the difference between an object-oriented programming language and object-based programming language?
What are methods?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
Explain the difference between comparator and comparable in java?