Single-Tasking Systems

Older systems like MS-DOS allowed only one process at a time. You had to wait for a process to finish before starting the next.

Process Flow:

image.png

  1. Process created in memory
  2. Process starts running
  3. Process finishes execution
  4. System becomes free for next command

Problem:

If a process performed an I/O operation, the CPU would sit idle, wasting resources.


Multi-Programming Systems

Multi-programming allows multiple processes to exist in RAM (besides the OS), ensuring the CPU always has something to work on.

Multi-programming vs. Multitasking:


Process States (Five-State Model)

image.png

1. New