CompTIA Linux+ Exam XK0-004: How to Correct Resource Consumption Issue with Process ID 2864

How to Correct Resource Consumption Issue with Process ID 2864

Question

A systems administrator suspects a process with a PID of 2864 is consuming resources at an alarming rate.

The administrator uses the command renice -n - 5 -p2864, but it does not solve the issue.

Which of the following commands should the administrator execute to correct the issue?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C.

The renice command is used to change the priority of an already running process. The command renice -n -5 -p 2864 suggests that the administrator is trying to decrease the priority of process 2864 by 5, but it is not solving the issue.

To correct the issue, the administrator should increase the priority of the process, which can be done using the nice or renice command. The nice command is used to launch a new process with a specific priority level, whereas renice is used to change the priority of an already running process.

Option A: nice -n 5 -p 2864 will start a new process with a lower priority of 5, but it will not affect the already running process with PID 2864.

Option B: nice -n -5 -p 2864 will lower the priority of process 2864 by 5. This is the opposite of what the administrator needs to do to correct the issue.

Option C: renice -n 10 -p 2864 will increase the priority of process 2864 by 10, which is what the administrator should do to correct the issue.

Option D: renice -n -10 -p 2864 will decrease the priority of process 2864 by 10, which is the opposite of what the administrator needs to do to correct the issue.

Therefore, the correct answer is C: renice -n 10 -p 2864.