2.2. Achieving Parallelism

The operating system is responsible for running processes as necessary. In the simplest case, the operating system runs processes one at a time from beginning to completion. This is called sequential processing or batch processing. Running processes one at a time, however, means that each process usurps the whole computer for as long as it runs, which can be both inflexible and inefficient. The operating system therefore runs multiple processes in parallel. This is called multiprocessing.