what is the difference between multitasking and
multithreading?

Answer Posted / pushpendra singh gorwa

multitasking :
1. Multiple tasks, also known as processes, share common
processing resources.
2. You can simultaneously run multiple applications.
3. Heavyweight process
4. Every process have different address space so context
switch or intercommunication between processes is much
expensive.

Multithreading :
1. Subdivide specific operations within a single application
into individual threads.
2. Each of the threads can run in parallel. OS divides
processing time not only among different applications, but
also among each thread within an application.
3. Light weight process
4. Threads for the same application share same address space
so context switch or intercommunication between threads is
less expensive.

Is This Answer Correct ?    13 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why generics are used in java?

545


What is the difference between static and global variables and also define what are volatile variables?

547


What is a final class ?

596


What type of variable is error flag?

578


How do you differentiate abstract class from interface?

523






Write code of any action class?

544


What is java jit compilers?

555


What is the difference between path and classpath variables?

518


How to create com object in Java?

642


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

583


What is the point of java?

546


What language is an assembler written in?

543


Is char * a string?

533


How many types of constructors are used in java?

532


How we create object in copy constructor?

636