Thursday, January 10, 2019

Difference Between Multi-programming and Multitasking in Operating System

What is Multi-programming?

Multi-programming is the ability for more than one user to use the computer at a time using a single CPU. The idea is to effectively utilize the processor to create multiple ready-to-run processes with each process belongs to different user. If the current process stalls for some reason, because it has to wait for some particular event, the operating system allocates the CPU to another process in the queue. The whole operation is facilitated by multi-programming operating systems to maximize CPU utilization so that to reduce the idle time of the CPU. The idea is to keep the CPU busy for as long as possible

What is Multitasking?

Multitasking means concurrent execution of multiple processes by one user on the same computer utilizing multiple CPUs. For example, in a multitasking operating system, you may work on a word document with one program while listening to music as the same time with another program. Multitasking is effective when programs on a compute require a high degree of parallelism. It is based on the concept of time sharing because multiple processes or tasks can be switched accordingly at a regular interval of time, so that the users get the idea that they are performed concurrently.



No comments:

Post a Comment