Linux clock time, user CPU time, System CPU time.

Source: Internet
Author: User

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:

    1. [Email protected]:~/temp$ time./test
    2. Sdga
    3. S d G A
    4. Above is the test program.
    5. Real 0m4.019s//clock time
    6. User 0m0.004s//Subscriber CPU Time
    7. SYS 0m0.000s//System CPU time
Top
0
Step

Linux clock time, user CPU time, System CPU time.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.