Linux Process priority score: 1. Real-time priority (kernel-related), range 0-99, lower priority with fewer digits. The RT that top sees is real-time priority.
2. Static priority (user-related), range100-139,The smaller the number, the higher the priority .
The real-time priority is higher than the static priority level.
Nice is a priority value, range 20-19 the smaller the value, the higher the corresponding process priority, in the top, pr-ni=20
start a process by default, nice is 0, and you can specify the friendly value when you execute the process:
nice-n-5 sleep
use Renice to adjust this value:
renice PID
The following command can see the levels of real-time and static precedence:
ps-e-o rtprio,pri,nice,cmd
the last column, plus [], represents the kernel thread
Reference Linkshttp://blog.csdn.net/helloanthea/article/details/28877221
Linux Process Priority related summary