Batch Operating Systems
Early batch operating systems executed jobs in batches, with one job being processed at a time. These early systems had a degree of multiprogramming of one, meaning only one process was loaded into primary memory for execution. This resulted in low CPU utilisation because, if the running process had to wait for an I/O operation, there was no other process available to execute and the CPU would remain idle. Later batch systems introduced multiprogramming to overcome this limitation.
Multiprogramming Operating Systems
In a multiprogramming operating system, multiple processes can be loaded into primary memory at the same time. This can increase CPU utilisation because, when the currently running process becomes blocked while waiting for an event such as an I/O operation, the operating system can allow another ready process to use the CPU. On a single CPU, only one process is actually executing at any particular instant, but the CPU can switch between processes. This allows the execution of multiple processes to overlap over time and is known as concurrency.
Multiprocessing Operating Systems
A multiprocessing operating system can make use of multiple processors or CPU cores. Unlike a single-CPU multiprogramming system, more than one process can therefore be executing at the same instant. The simultaneous execution of multiple processes is known as parallelism. This differs from concurrency, where multiple processes make progress during overlapping periods of time but do not necessarily execute at exactly the same instant.