When multiple processes and threads are running on a Linux system, the kernel must decide which one gets to use the CPU and for how long.
Process Scheduling in Linux
When multiple processes and threads are running on a Linux system, the kernel must decide which one gets to use the CPU and for how long.