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