Showing posts with label cpu utilization. Show all posts
Showing posts with label cpu utilization. Show all posts

Saturday, February 25, 2012

What is Multitasking and Multithreading?

Hello guys, here discuss meaning of multitasking and multithreading with differences.


Multitasking

Multitasking



Difference Between Multitasking and Multithreading
MultitaskingMultithreading
1.Multiple task(process) processed in computer. Single task(process) has multiple sub tasks(threads).
2.A program in running state called process(task).During exicution, process(task) divides into subprocess(subtask) called thread
3.Each task is a heavy-weight process.Each thread is light-weight process.
4.Each task has own memory location.All threads share common memory space.
5.Multitasking used for utilization of CPU.Multithreading for maximum CPU utilization. When task exicutes then sub tasks like input/output operations, read from file etc. During input output operations CPU becomes idle SO multithreading helps to reduce idle time of CPU and CPU utilization optimally.
6.Multiple task like running antivirus, printing document, listening music, copying data etc.Multiple thread in single task like taking input stream, processing data, drawing graphics on screen etc.


multithreading

Multithreading