LFCS · Question #833
What is the default nice level when a process is started using the nice command?
The correct answer is B. 10. When the nice command is used without specifying a priority level, it defaults to a niceness value of 10, which lowers the process's priority.
Question
Options
- A-10
- B10
- C20
- D0
How the community answered
(39 responses)- A3% (1)
- B87% (34)
- C3% (1)
- D8% (3)
Why each option
When the `nice` command is used without specifying a priority level, it defaults to a niceness value of 10, which lowers the process's priority.
A niceness level of -10 would increase a process's priority, which is not the default when using `nice` without arguments.
The `nice` command, when executed without any explicit niceness value specified, defaults to setting the process's niceness to `10`. This means the process will run with a lower scheduling priority than a process started with a default niceness of 0.
A niceness level of 20 represents the lowest possible priority, but the default for the `nice` command is 10.
A niceness level of 0 is the default for processes started normally, without the `nice` command.
Concept tested: Linux process niceness and scheduling
Source: https://man7.org/linux/man-pages/man1/nice.1.html
Topics
Community Discussion
No community discussion yet for this question.