I want to change the priority of a process using top command
top command, press
Give PID value of the process you want to change the process value.
renice value (from -20 to +19)
Nice value of -20 means highest priority value and +19 means lowest priority value. 0 is by default value.
Don't confuse renice value (-20 to +19) with process value (0 to 39)
relation between nice value and priority is :
PR = NI + 20
In addition to erTugRul’s answer, the
renice command exists for this exact function.
renice -5 -p 1234