Welcome to CSwithGK. The topic of this article is what is Multiprogramming and Multitasking Operating System ?? and we are going to know what is the difference between them.
By the way, there are many types of operating systems such as Batch OS, Multitasking, Multiprogramming, Realtime, Distributed, Clustered, and Embedded. But out of all this, we are going to tell you about Multitasking and Multiprogramming, so let's start....
![]() |
What is Multiprogramming Operating System??
Definition:
In multiprogramming OS, CPU executes many processes simultaneously. That is, the processor of the CPU is shared among all these processes. Multiprogramming increases CPU utilization because CPU always has to execute one process.
How does Multiprogramming OS work??
In Multiprogramming Operating System, the system brings many processes into memory at once. And starts executing those processes one after the other. In such a situation, if a process is blocked for some time, then the CPU runs the other process. In such a situation, the CPU does not come in idle state and remains busy in executing the processes. So such multiprogramming solves the issue of CPU and Primary Memory (RAM) utilization to some extent.
Example of Multiprogramming Operating System Working
If any process needs Input Out Resources then CPU will interrupt it and another process will execute that which is lying in Waiting Queue. This is how Multiprogramming OS works.
Where is the use of multiprogramming OS??
- Multiprogramming is used in the Windows operating system.
- It is also used in Unix OS.
- This type of operating system is often used in microcomputers too.
Advantages of Multiprogramming OS ??
- CPU utilization increases in multiprogramming operating system so that CPU never remains idle.
- Response time is very less in this type of operating system.
- Multiple users can use multiprogramming system simultaneously.
- The throughput of the computer increases with the multiprogramming operating system.
Disadvantages of Multiprogramming OS ??
- CPU Scheduling is required for multiprogramming OS.
- All types of processes are stored in the main memory, so it becomes necessary to manage the memory.
- It is very difficult to manage Processes and Jobs. Its mechanism is complex.