linux idle process code example
Example: linux idle process
The idle task is used for process accounting, and also to reduce
energy consumption. In Linux, one idle task is created for every
processor, and locked to that processor; whenever there’s no other
process to run on that CPU, the idle task is scheduled. Time spent
in the idle tasks appears as “idle” time in tools such as top.