The short answer is that there is a history of different *nix systems (and even different Linux kernels) having different priority systems.
The nice level is just a relative priority (-20..20), so it is mostly well behaved!
If you do the following, you will see several of these different priority systems:
Code:
ps -o pid,priority,pri,opri,nice,command
On a current Linux system, the value of
pri equals
39-priority, and
opri equals
60+priority.
The command
top will give the 'priority';
ps -c will report 'pri', and
ps -l will give 'opri'.
There are others too, and just to complicate matters, the kernel does not use the same scheduling algorithm for all processes.