[Multiprogramming VS Multitasking] : Difference between multiprogramming and multitasking

 

In the Concept of Operating system, most of the students are facing problem in the difference between multiprogramming and multitasking so let’s clear the confusion.

 

As we know CPU is a very smart and fast device it can manage so many tasks at a time and it completes the task very fastly and smartly as CPU the processor is also fast so to manage communication between them OS has many concepts like multitasking, multiprogramming and multithreading.


Multiprogramming:


As we know when we assign any task then first it goes into the main memory. Suppose we give four task at a time then processor executes that all tasks one by one and suppose process 3 requires IO devices then CPU can’t wait more time so CPU let it be that process 3 and start executing process 4 and after some time it gets back to process 3 so it calls multiprogramming in OS.

 

 

Multi-tasking:


There is some little bit difference between multiprogramming and multitasking suppose you give more than one task to the Processor then it executes all the process at a time by switching between them. and the switches occur so frequently that the users can interact with each program while it is running.


We can call multitasking as timesharing also and we can understand that full process using round robins scheduling algorithm.

 

 

Difference between multiprogramming and multitasking


Multi-programming

Multi-tasking

We can use this only for one CPU.

We can use this only for one CPU.

Processor switch between two or

more process when any process 

needs to wait for IO devices.

In multitasking, the processor is 

used to sharing equal time for 

every process.

Multi-programming increases 

CPU utilization by organizing 

jobs

In multi-tasking also increases 

CPU utilization, it also

increases responsiveness.

Mainly this is used to reduce 

CPU time.

It is used to increase response 

time and to run multiple programs 

at a time



Reactions

Post a comment

2 Comments

Unknown said…
Informative thank you
Darshil thummar said…
I like this information . Now I know about multiprogramming vs multi-tasking. 👌👌