101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 35


What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?

Show Answer
Correct Answer: C

The maximum niceness value that a regular user can assign to a process with the nice command when executing a new process is 19. Niceness values range from -20 (most favorable to the process) to 19 (least favorable to the process). Regular users can only assign niceness values from 0 to 19, with 19 being the maximum.

Discussion

7 comments
Sign in to comment
IgusOption: C
Sep 30, 2020

1. Nice value goes as regular integer, where 19 is bigger than -20. If question would ask for highest priority - than it's -20. 2. Question asks about regular user. Regular user can not assign nice below 0.

aMiPLOption: C
Mar 31, 2021

Run COMMAND with an adjusted niceness, which affects process scheduling. With no COMMAND, print the current niceness. Niceness values range from -20 (most favorable to the process) to 19 (least favorable to the process). So it must be 19. The question ask about the maximum possible number not a maximum priotity user can assign where lower = higher pririoty

CuriousLinuxCatOption: C
Jul 24, 2021

Maximum range of niceness is from -20 to 19. Just choose the max number from the selection, to which in this case, is 19.

klom
Sep 5, 2020

Should be -20

Jack67Option: C
May 15, 2023

the range of niceness is from -20 to 19

damirxOption: A
Apr 23, 2023

It is 9. The lower the number the highest the nice priority. A regular user cannot set niceness below 0.

NinymoOption: C
Mar 24, 2024

Answer: C