Exam LFCS All QuestionsBrowse all questions from this exam
Question 54

What is the default nice level when a process is started using the nice command?

    Correct Answer: B

    When a process is started using the nice command without specifying a nice value, the default nice level is 10. The nice command modifies the scheduling priority, where positive values lower the priority, making the process 'nicer' to other processes. The typical default is 10 when nice is used without additional parameters.

Discussion
BorbzOption: D

I think the correct answer is D. When a process starts the default Nice Lv is 0.

Funkslinger

While original nice value is 0, once you use the nice command, without stating desired nice value, it gets set to the default nice of 10. Answer is B as you have used nice, not left it to the original nice value.

mksarav

to update the nice value, one has to use renice command. You cannot use nice command again to change nice value of already running process. So I believe answer B is not correct.

Greenmile84Option: A

[vmitkov@F:~]$ ps -el | grep ps 0 R 1000 122 41 0 80 0 - 1888 - pts/0 00:00:00 ps

Greenmile84Option: D

The nice value determines the priority of the process. The higher the value, the lower the priority--the "nicer" the process is to other processes. The default nice value is 0 on Linux workstations

StribOption: D

The nice command is used to launch a process with a modified scheduling priority, also known as the nice value. The nice value ranges from -20 to +19, with lower values indicating higher priority. When the nice command is used without specifying a value, it assumes a default nice value of 0. This means that the process will have the same priority as the parent process or the shell from which it was launched.

mksaravOption: D

correct answer is D. proof: https://www.ed.ac.uk/files/imports/fileManager/Be_Nice_Renice.pdf