During peak hours, a backup process (PID 2635) consumes excessive CPU time and slows critical services. The administrator wants to lower the process's scheduling priority by increasing its nice value, without stopping it. Which command accomplishes this?
The correct answer is renice +5 2635 because renice modifies the priority of an already-running process. The +5 argument raises the nice value, giving the process a lower CPU-scheduling priority. Other options are incorrect: nice -5 -p 2635 and nice --adjustment=+5 --pid=2635 misuse the nice command, which cannot target an existing PID, and renice -5 2635 lowers the nice value, giving the process higher priority, which is the opposite of the requirement.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the 'renice' command do in Linux?
Open an interactive chat with Bash
What is the difference between 'nice' and 'renice' commands?
Open an interactive chat with Bash
What is a 'nice value' and how does it affect process scheduling?