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


Please Help Members By Posting Answers For Below Questions

What are methods in java?

541


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

681


What is difference between classpath and path variables in java?

557


Describe the Big-O Notation.

618


Why method overriding is used?

541






How will you serialize a singleton class without violating singleton pattern?

1525


What is a for loop in java?

599


Will the jvm load the package twice at runtime?

574


What is computer compiler?

536


What one should take care of, while serializing the object?

484


Where is stringbuffer stored?

551


What is hashset in java?

532


What are the uses of java?

573


What is a priority queue java?

529


What Is Composition?

584