Skip to content
We areTOP 1%

What is the difference between multiprogramming, multitasking and multiprocessing?

EasyConceptOS Basics & System Calls
Track your progress
First attempt
Re-solve after a few days
Final pass before interviews

Answer

Multiprogramming keeps several programs in memory at once, so that when one waits for I/O (input/output, such as a disk read) the CPU switches to another instead of sitting idle. Multitasking, also called time-sharing, goes further: the OS switches between programs every few milliseconds even when none is waiting, so an interactive user feels that all of them run together. Multiprocessing means the machine has two or more CPUs or cores that truly execute programs at the same instant.

  • Multiprogramming aims at high CPU utilisation. The number of programs kept in memory is called the degree of multiprogramming.
  • Multitasking aims at short response time and relies on a timer interrupt and preemptive scheduling.
  • On a single core, multitasking gives only concurrency (interleaving); multiprocessing gives real parallelism.

Example: on a single-core computer, a music player and a text editor seem to run together because the OS switches between them roughly every 10 ms (multitasking). On a quad-core laptop, four programs can execute in the same instant (multiprocessing). Analogy: one chef who starts a second dish while the first one simmers is multiprogramming; four chefs cooking at once is multiprocessing.

More in OS Basics & System Calls

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account