A computer is running a multitasking operating system. Describe how the operating system uses scheduling to manage process execution on a single-core CPU.