Have seen a few times before the concept, but still always remember, simply write it down, easy to see in the future ~
The so-called clock time is also called the wall clock time, it is the total number of clocks that the process is running, and its value is related to how many processes are running concurrently in the system, although it is generally measured when there are no other activities in the system when discussing clock time.
User CPU Time: Is the time spent executing user instructions.
System CPU Time: The so-called system, we know that is the time to execute in the kernel, yes, that is, the process of executing the kernel program experience time.
It is not difficult to see these three times of a process, as long as you execute the command time, such as:
- [Email protected]:~/temp$ time./test
- Sdga
- S d G A
- Above is the test program.
- Real 0m4.019s//clock time
- User 0m0.004s//Subscriber CPU Time
- SYS 0m0.000s//System CPU time
-
Top
-
0
-
Step
Linux clock time, user CPU time, System CPU time.