I've recently noticed that there is a 'Show Kernel Times' option in Windows XP's Task Manager under the 'Performance' tab. This shows up as a red meter over the green 'CPU Usage' meter. Exactly what is Kernel Times?

migrated from stackoverflow.com Jul 23 '09 at 6:34

This question came from our site for professional and enthusiast programmers.


Understanding User and Kernel Mode


In Kernel mode, the executing code has complete and unrestricted access to the underlying hardware. It can execute any CPU instruction and reference any memory address. Kernel mode is generally reserved for the lowest-level, most trusted functions of the operating system. Crashes in kernel mode are catastrophic; they will halt the entire PC.

  • I see, you anticipated this question in your blog :-). – sleske Jul 23 '09 at 7:49

Kernel time is the execution time of a process spent in the kernel. e.g. for networking, disk I/O or other kernel tasks.


Most operating systems have a core component which always stays in memory, and performs core tasks such as interfacing between normal programs and the hardware (memory management, access to device drivers, task switching...). This part is generally referred to as the kernel. Everything else is referred to as user mode (roughly speaking). This includes the "rest" of the operating system (such as system services), and regular programs.

The kernel generally has a lot more direct HW access, and in runs in a different CPU ring. Therefore its CPU time is counted seperately. This is why it is shown separately.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.