LFCS · Question #728
What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?
The correct answer is B. 19. A regular user can assign a maximum niceness value of 19 to a new process, which corresponds to the lowest priority.
Question
Options
- A9
- B19
- C49
- D99
How the community answered
(36 responses)- A3% (1)
- B86% (31)
- C3% (1)
- D8% (3)
Why each option
A regular user can assign a maximum niceness value of 19 to a new process, which corresponds to the lowest priority.
While 9 is a valid niceness value that a regular user can set, it is not the maximum possible value they can assign to decrease a process's priority.
The niceness value ranges from -20 (highest priority) to 19 (lowest priority). A regular user can only assign non-negative niceness values and can only increase the niceness (decrease priority), with 19 being the maximum value they can set.
49 is outside the standard niceness range, which typically extends only up to 19.
99 is outside the standard niceness range, which typically extends only up to 19.
Concept tested: Process niceness and priority
Source: https://man7.org/linux/man-pages/man1/nice.1.html
Topics
Community Discussion
No community discussion yet for this question.