An operating system is responsible for multitasking, which allows a user to run multiple applications at the same time.
Describe how the operating system manages CPU time to enable multitasking.