Motivation

OS should provide efficient use of the hardware resource. If only one program is executed at any point of time, hardware resources are not used effectively, hence multiple programs should be allowed to share the hardware.

However, this requires the operating system to have/execute

  • information regarding first program’s execution
  • replace information of the first program with the information required to run program B

Key topics: