Linux process pri with NI value

Source: Internet
Author: User

Process priority of 1.PRI, most systems (Linux, ucosii) are the lower the number of priority, the higher the process will run, the PRI (new) = PRI (old) and Nice in Linux, where the PRI (old) is determined by the system algorithm, Created with different values, the user cannot be modified , and the user can only modify the priority of the process by modifying nice

Nice, 2.NI, process priority correction amount, 20 ~ 19, user modifiable (root user can modify Nice value-20 ~ 19, Normal user can only modify nice value 0~19). In general, the child process inherits the Nice value of the parent process, and since the nice value of the init process is 0, all the nice values for most processes are 0.

3. The user can change the priority of the process by renice the XX process number, where xx is the nice value, Eg:renice 22401, Note: The PRI (old) is reserved by the system, each time the Renice XX process number command is executed, all are in the PRI (o LD) based on the +nice value

4. The user can also use the Nice-n XX process number command to open a process with that priority

5. (1) Some of the 1th's descriptions are incorrect and need to be further studied

(2) Most of the Linux systems are now in the process of PRI,??????? , you need to continue to study the Linux kernel principle, and keep track of reference http://blog.csdn.net/gatieme/article/details/51719208

Above

2017/07/11

Linux process pri with NI value

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.