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
What is Classloader in Java?
List two java ide’s?
What is the method to declare member of a class static?
What is an off by one error in java?
How to create a custom exception?
What is the buffer limit?
What is difference between synchronize and concurrent collection in java?
what is synchronization? : Java thread
What is reflexive association?
why an outer class cannot be declared as private?
What is class forname?
What is the difference between throw and throws in java?
Is java 1.7 the same as java 7?
What is the difference between multitasking and multithreading in Java
Can we sort hashmap in java?