Study Guides/Computer Science/Multiprogramming Operating System
Study Guide ยท Computer Science

Multiprogramming Operating System

Multiprogramming is a fundamental concept in Operating Systems (OS) that dramatically improves CPU efficiency and overall system performance.

Question (Click to Flip)

What is degree of multiprogramming?

Answer

The degree of multiprogramming refers to the number of programs loaded in memory simultaneously. Higher degree = better CPU utilisation, but requires more RAM.

Card 1 of 1 free previews

Key Facts

Multiprogramming was introduced in the 1960s with IBM's OS/360. Before multiprogramming, computers could only run one program at a time (uni-programming), wasting CPU time during I/O.

Definition

Multiprogramming is the ability of an OS to load and execute multiple programs simultaneously in memory.

The OS keeps several programs in memory at the same time. When one program is waiting (e.g., for input/output), the CPU automatically switches to execute another program โ€” ensuring the CPU is never idle.

How it Works

  • Program A is running. It requests data from a hard disk (slow I/O operation).
  • Instead of waiting idle, the OS switches the CPU to Program B.
  • Program B runs until it also needs I/O or finishes.
  • The OS switches back to Program A when its data is ready.

This way, the CPU is kept busy almost 100% of the time.

Multiprogramming vs Multitasking

FeatureMultiprogrammingMultitasking
FocusCPU utilisationUser responsiveness
SwitchingSwitches when program waitsSwitches rapidly (time slices)
User interactionBatch processingInteractive/real-time

Questions and Answers

What is degree of multiprogramming?+

The degree of multiprogramming refers to the number of programs loaded in memory simultaneously. Higher degree = better CPU utilisation, but requires more RAM.

More in Computer Science

Study Smarter with Shinyu.ai

Turn this guide into revision flashcards, a practice exam, or an AI-generated podcast โ€” free, no signup required.