Exam LFCS All QuestionsBrowse all questions from this exam
Question 46

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

    Correct Answer: B

    The maximum niceness value that a regular user can assign to a process with the nice command when executing a new process is 19. The nice command is used to set the niceness of a process, which adjusts the process's priority. A higher niceness value means the process will run with lower priority. The permissible range for regular users is 0 to 19, where 19 is the maximum, indicating the lowest priority.

Discussion
BuruguduystunstugudunstuyOption: B

The maximum niceness value that a regular user can assign to a process with the 'nice' command when executing a new process is '19'. Option B is the correct answer. The 'nice' command is used to set the niceness of a process, which determines the priority at which the process will run. A higher niceness value means that the process will have a lower priority and will run less frequently. By default, a regular user can only set the niceness value to a maximum of '19'. This means that the process will have a lower priority and will run less frequently than processes with a lower niceness value. To set the niceness value of a process to the maximum value of '19', you can use the following command: nice -n 19 command This command will execute the 'command' with a niceness value of '19', giving it a lower priority and causing it to run less frequently.

Buruguduystunstugudunstuy

The other options do not accurately describe the maximum niceness value that a regular user can assign to a process: Option A: The maximum niceness value is '19', not '9'. Option C: The maximum niceness value is '19', not '49'. Option D: The maximum niceness value is '19', not '99'. Note: A superuser (root) can set the niceness value to any value, including values lower than '19'. This will give the process a higher priority and cause it to run more frequently.

passnow

https://medium.com/@chetaniam/a-brief-guide-to-priority-and-nice-values-in-the-linux-ecosystem-fb39e49815e0

BorbzOption: B

Answer correct. The nice value range is -20 to +19 where -20 is highest, 0 default and +19 is lowest.

jegga

0 is not the default, 10 is the default. check 'man nice'

Funkslinger

To clarify... 0 is the value of left alone. Neutral. Using the nice command without specified value sets value to 10. Default is a tricky term here. Original value and default value may be better terms.