User CPU time vs System CPU time?

cpu
user472221 picture user472221 · Nov 30, 2010 · Viewed 84.7k times · Source

Could you explain more about "user CPU time" and "system CPU time"? I have read a lot, but I couldn't understand it well.

Answer

Michael Ekstrand picture Michael Ekstrand · Nov 30, 2010

The difference is whether the time is spent in user space or kernel space. User CPU time is time spent on the processor running your program's code (or code in libraries); system CPU time is the time spent running code in the operating system kernel on behalf of your program.