nerdexam
CompTIA

XK0-004 · Question #532

A Linux administrator is optimizing a system in which an application needs to change the priority to one for the running process: 9014. Which of the following commands will achieve this task?

The correct answer is D. Option D. Changing the scheduling priority of an already-running Linux process is done with the renice command, specifying the new nice value and the target process ID.

System Management

Question

A Linux administrator is optimizing a system in which an application needs to change the priority to one for the running process: 9014. Which of the following commands will achieve this task?

Exhibit

XK0-004 question #532 exhibit

Options

  • AOption A
  • BOption B
  • COption C
  • DOption D

How the community answered

(44 responses)
  • B
    2% (1)
  • C
    5% (2)
  • D
    93% (41)

Why each option

Changing the scheduling priority of an already-running Linux process is done with the renice command, specifying the new nice value and the target process ID.

AOption A

This option uses an incorrect syntax or command that does not properly invoke renice with the required nice value of 1 and process ID 9014.

BOption B

This option specifies the wrong flag combination or argument order for renice, causing it to fail or target the wrong attribute of the process.

COption C

This option may use the nice command rather than renice, which is used to launch a new process with a given priority, not to alter an already-running process.

DOption DCorrect

Option D uses the correct renice syntax to target process ID 9014 and set its nice value to 1, which adjusts its CPU scheduling priority without restarting it. The renice command operates on running processes and accepts a niceness value (-20 to 19, where lower values mean higher priority) along with a PID, making it the precise tool for this task.

Concept tested: Adjusting running process priority with renice

Source: https://man7.org/linux/man-pages/man1/renice.1.html

Topics

#process priority#renice#nice values#process management

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice