Custom processor time versus CPU system time?

Could you tell us more about "user processor time" and "system processor time"? I read a lot, but I could not understand it well.

+42
cpu
Nov 30 '10 at 2:34
source share
4 answers

The difference is whether time is spent in user space or kernel space. User processor time is the time spent on the processor executing your program code (or code in libraries); CPU system time is the time it takes to run the code in the kernel of the operating system on behalf of your program.

+32
Nov 30 '10 at 2:36
source share

The term "user CPU time can be a little tricky at first. To be clear, the total time (real time of the processor) is a combination of the time that the CPU takes to complete some action for the program and the amount of time that the CPU takes to make system calls for the kernel in the name When a program passes through an array, it accumulates the user's CPU time, and vice versa, when a program makes a system call, such as exec or fork, it accumulates the CPU system time.

+12
Mar 11 '14 at 20:21
source share

User Processor Time : The time during which the processor worked on a specific program.

System processor time: The time during which the processor worked on the operating system features connected to this particular program.

+4
Sep 02 '16 at 16:44
source share

Based on wikipedia :

  • User time is the time that the processor is busy executing code in user space.
  • System time is the time during which the processor is busy executing code in kernel space. If this value is reported to a thread or process, then it represents the amount of time that the kernel performed to work on behalf of the executable context, for example, a system call is issued after the thread.
+1
Jan 16 '17 at 13:23
source share



All Articles