A systems administrator is managing a production server and notices that a long-running data analysis process with PID 4621 is consuming excessive CPU resources, causing performance degradation for other critical services. The administrator needs to immediately lower the process's scheduling priority without terminating it. The decision is to increase its niceness value by 15. Which of the following commands will correctly apply this adjustment?
The correct command to change the scheduling priority of a running process is renice. The nice command is used to start a new process with a specified priority, not to modify an existing one. The correct syntax for renice requires specifying the niceness value with the -n flag and the process ID with the -p flag. Therefore, renice -n 15 -p 4621 correctly sets the niceness value of process 4621 to 15. The other options either use the wrong command or incorrect syntax for the renice command.
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 is the difference between 'nice' and 'renice' commands in Linux?
Open an interactive chat with Bash
What is the purpose of process priority in Linux?
Open an interactive chat with Bash
How do you verify the priority of a running process?