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?
3 Answers
Kernel time is the execution time of a process spent in the kernel. e.g. for networking, disk I/O or other kernel tasks.
- 2,165
- 2
- 15
- 25
Understanding User and Kernel Mode
http://blog.codinghorror.com/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.
- 103
- 4
- 12,994
- 20
- 74
- 92
-
1I see, you anticipated this question in your blog :-). – sleske Jul 23 '09 at 07:49
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 it runs in a different CPU mode (also see protection ring). Therefore its CPU time is counted seperately. This is why it is shown separately.
- 9,851
- 4
- 33
- 44
-
And here is [CPU ring on wikipedia](https://en.wikipedia.org/wiki/Protection_ring) ... – HongboZhu Jan 17 '20 at 11:23
-