Program Execution Priority -- Priority and Nice values

Source: Internet
Author: User

Program Execution Priority-Priority and Nice value 1. Relational concept: Priority is the PRI value. The core control of this value can be changed for Nice that cannot be changed. Relationships: PRI (new) = PRI (old) + nice www.2cto.com 2. Nice adjustment restrictions: nice value can be adjusted from-20 ~ 19; root can adjust the Nice value of programs of himself or others at will, and the value range is-20 ~ 19; Generally, users can only adjust their own program Nice value, and the range is only 0 ~ 19 (to avoid general users from occupying system resources); general users can only adjust the nice value to a higher value. For example, if nice is 5, it can only be adjusted to 5 in the future; 3. Adjustment Method 1: The newly executed command gives the new nice value [root @ www ~] # Nice [-n number] command Option and parameter:-n: Followed by a value. The value range is-20 ~ 19. If www.2cto.com is checked with ps-l, the displayed PRI is PRI (new), and the core is automatically adjusted, not the PRI (old) + nice value, will increase a little. 4. Adjustment Method 2: nice of the existing program re-adjusted renice [number] PID 5. Adjustment Method 3: top

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.