The OS decides the best way to swap between running, runnable and waiting processes. It controls which process is being executed by the CPU at any point in time, and shares access to the CPU between processes. The job of working out when to swap processes is known as scheduling.
How the operating system helps manage the processor and memory?
As the OS coordinates the activities of the processor, it uses RAM as a temporary storage area for instructions and data the processor needs. The OS is therefore responsible for coordinating the space allocations in RAM to ensure that there is enough space for the waiting instructions and data.
What does the operating system help to manage?
Operating system (OS), program that manages a computer’s resources, especially the allocation of those resources among other programs. Typical resources include the central processing unit (CPU), computer memory, file storage, input/output (I/O) devices, and network connections.