My question is about how an OS kernel reports the CPU load usage using a command such as top
in Linux/Unix, or using a function such as os.getloadavg()
in Python. I specifically want to know if the OS reserves CPU processing for the OS (stdout, peripheral listeners, etc.) and whether or not that reserved CPU processing is included in the output of those commands.
I'm not sure which SE branch is appropriate for my question. I suspect that it may either be Stack Overflow, Linux & Unix, Software Engineering, or Server Fault.