Process Priority with nice
A regular user starts a long compression job with nice -n 10 xz big.tar, then tries to speed it up with renice -n 0 -p <pid>. The command fails with Permission denied. Why?
nice -n 10 xz big.tar
renice -n 0 -p <pid>
Choose one answer
renice only works on processes that were started without nice.
renice
nice
renice needs the new value relative to the old one for regular users, so they must pass -n -10 instead of an absolute 0.
-n -10
Unprivileged users can only raise a process's niceness (lower its priority), never lower it again.
The process must be paused with kill -STOP before its priority can change.
kill -STOP