A system administrator observes that a data analysis process with a PID of 1234 is consuming a high amount of CPU, negatively affecting the performance of other critical services on the server. The administrator needs to lower the scheduling priority of this specific process without terminating it. Which of the following commands will accomplish this task?
The correct command is renice 10 1234. The renice command is used to alter the scheduling priority of one or more running processes. The niceness value ranges from -20 (highest priority) to +19 (lowest priority). Increasing the niceness value, for example to 10, makes the process "nicer" to other processes, thereby lowering its priority and reducing its CPU consumption relative to other tasks.
renice -10 1234 is incorrect because a negative value attempts to increase the priority of the process, which would make the performance issue worse. Only the root user can increase a process's priority (decrease its niceness value).
nice -n 10 1234 is incorrect because the nice command is used to launch a new process with a specified priority, not to change the priority of an already running process.
kill -9 1234 is incorrect because the kill command with signal 9 (SIGKILL) would forcibly terminate the process, whereas the requirement is to lower its priority, not stop it.
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`?
Open an interactive chat with Bash
Why does the niceness value range from -20 to +19?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access