1.

Differentiate between Multiprogramming vs Multitasking.

Answer»

Following are the differences between Multiprogramming and Multitasking:

MultiprogrammingMultitasking
Multiprogramming is primarily used to maximise CPU efficiency by arranging applications so that only one programme is running at any given TIME.Multitasking, on the other hand, tries to improve reaction time by sharing computing resources among multiple users.
The goal of multiprogramming is to make the CPU work HARDER. The programs are designed in such a way that the CPU is never idle; each program is executed one after the other.Multitasking, on the other hand, aims to enhance CPU reaction time.
Multiprogramming is based on the concept of context switching, which is a common operation that allows a SINGLE processor machine's CPU to switch from one task to another. The Process Control Block (PCB) keeps track of an active process's state so that the CPU can resume from the same point. Multitasking, on the other hand, is based on time-sharing, which means that each activity or process is completed in the same amount of time.
Multiprogramming relies on a computer's ability to store programs for longer periods of time in order to REDUCE CPU idle time. Processes are allocated using the scheduling mechanism. The operating system executes a portion of one program at a time, then another program, and so on.The CPU, on the other hand, allows multiple processes to run at the same time using time-sharing and executes them properly under a multitasking operating system.
Multiprogramming can be done on a computer with a modest amount of RAM or ROM memory; a large quantity of memory is not required.Multitasking, on the other hand, demands a large quantity of memory storage in order to complete all jobs or processes at the same time.


Discussion

No Comment Found