XK0-005 · Question #26
A junior Linux administrator is optimizing a system in which an application needs to take priority 0 when running the process. The administrator runs the ps command and receives the following…
The correct answer is A. Issue the command ronice -n 0 -p 8481. The renice command is used to modify the scheduling priority (nice value) of a running process.
Question
A junior Linux administrator is optimizing a system in which an application needs to take priority 0 when running the process. The administrator runs the ps command and receives the following output:
Given this scenario, which of the following steps will address this issue?
Options
- AIssue the command ronice -n 0 -p 8481
- BIssue the command
- CIssue the command renice -p 0 ~n 8481
- DIssue the command renice -n 8481
How the community answered
(23 responses)- A70% (16)
- B17% (4)
- C4% (1)
- D9% (2)
Why each option
The `renice` command is used to modify the scheduling priority (nice value) of a running process.
The `renice` command with the `-n` option sets the nice value (priority), and the `-p` option specifies the Process ID (PID). To set the priority to 0 for a process with PID 8481, the correct command is `renice -n 0 -p 8481`.
This choice is empty and provides no command.
The syntax `renice -p 0 ~n 8481` is incorrect; the nice level should be specified with `-n` followed by the value, and the PID with `-p` followed by the PID.
The command `renice -n 8481` is syntactically incorrect as it attempts to set the nice value to 8481 (which is outside the valid range of -20 to 19) and does not specify a target PID.
Concept tested: Linux process priority management (renice)
Source: https://man7.org/linux/man-pages/man1/renice.1.html
Topics
Community Discussion
No community discussion yet for this question.