Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam LFCS topic 1 question 46 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 46
Topic #: 1
[All LFCS Questions]

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

  • A. 9
  • B. 19
  • C. 49
  • D. 99
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Buruguduystunstugudunstuy
1 year, 3 months ago
Selected 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'. 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.
upvoted 1 times
Buruguduystunstugudunstuy
1 year, 3 months ago
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.
upvoted 1 times
...
...
passnow
3 years ago
https://medium.com/@chetaniam/a-brief-guide-to-priority-and-nice-values-in-the-linux-ecosystem-fb39e49815e0
upvoted 1 times
...
Borbz
3 years, 2 months ago
Answer correct. The nice value range is -20 to +19 where -20 is highest, 0 default and +19 is lowest.
upvoted 1 times
jegga
2 years, 10 months ago
0 is not the default, 10 is the default. check 'man nice'
upvoted 1 times
Funkslinger
2 years, 1 month ago
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.
upvoted 1 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...