Let’s take a step back. There are 3 general states your CPU can be in:
- Idle, which means it has nothing to do.
- Running a user space program, like a command shell, an email server, or a compiler.
- Running the kernel, servicing interrupts or managing resources.