User CPU time vs System CPU time?

前端 未结 4 476
野的像风
野的像风 2020-12-04 11:48

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

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 12:19

    Based on wikipedia:

    • User time is the amount of time the CPU was busy executing code in user space.
    • System time is the amount of time the CPU was busy executing code in kernel space. If this value is reported for a thread or process, then it represents the amount of time the kernel was doing work on behalf of the executing context, for example, after a thread issued a system call.

提交回复
热议问题