What command changes the priority of the process running with process id of 12345 to the highest
priority?
A.
/usr/bin/renice +20 1234
B.
/usr/bin/renice -20 12345
C.
/bin/setpriority +20 12345
D.
/bin/setpriority -20 12345
Explanation:
To change the priority of running process we use the renice command. Default priority is 0, highest
priority is -20 and lowest priority is 19. The path of renice command is / usr /bin/ renice .
It should be: renice -n -20 12345
Correct answer B , gives desired result. Why do you think that
it should be with -n option ? After typing B variant but with -n as you think is correct , I got error.
SYNOPSIS
renice priority [[-p] pid …] [[-g] pgrp …] [[-u] user …]
renice -n increment [[-p] pid …] [[-g] pgrp …] [[-u] user …]