What command changes the priority of the process running with process id of 12345 to the highestpriority?

What command changes the priority of the process running with process id of 12345 to the highest
priority?

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 .



Leave a Reply 3

Your email address will not be published. Required fields are marked *


lw

lw

It should be: renice -n -20 12345

sara

sara

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.

Chris C

Chris C

SYNOPSIS
renice priority [[-p] pid …] [[-g] pgrp …] [[-u] user …]
renice -n increment [[-p] pid …] [[-g] pgrp …] [[-u] user …]