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 java is secure? Explain.

598


How does arraylist size increase in java?

531


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2374


What is a method in coding?

569


What is the generic function?

528






What is instanceof keyword?

729


What are filterstreams?

615


What is stored procedure. How do you create stored procedure ?

1497


What does i ++ mean in Java?

503


What is binary search in java?

559


What is a final class ?

605


What does I ++ mean?

611


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

561


What is core java used for?

519


What is garbage collection? What is the process that is responsible for doing that in java?

660