What is the default nice level when a process is started using the nice command?
What is the default nice level when a process is started using the nice command?
The default nice level when a process is started using the nice command is 10. When you initiate a process with the `nice` command without specifying a niceness value, it automatically sets the process's niceness to 10 to lower its priority compared to other processes.
If you start a command with nice it'll be 10, if you start command without nice it'll be 0.
agreed!
right you are right as mentioned before, https://linux.die.net/man/1/nice
C is correct answer
Tested and it is C - value of 10
C, a very easy way to test: run a "top" (as root user) and see the own top niceness, as many processes it is 0. then quit and run "nice top", will see the top niceness changed to 10
it's 10 if the command is started with nice
according the LPIC-1 Study Guide (Breshnahan/Blum) chapt.2, page 120: The default niceness level is zero. Must be answer B
Sorry, wrong answer, did not read the question good enough :-( Must be answer C: If no value is provided, nice sets a priority of 10 by default.
command + nice =10
The nice command, when run without arguments, will output the priority for the currently logged-in user, which is normally 0. The renice command can be used to change the priority of running processes. The other two commands shown as options for this question do not exist
Ans: C $ nice sleep 200 & [1] 13713 $ ps -l 13713 F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 0 S 1000 13713 13655 0 90 10 - 864 hrtime pts/0 0:00 sleep 200
C i think
Also saw C as correct in another guide.
Acordding to man page, default is 10. https://linux.die.net/man/1/nice
Checked the man page.
Please check the man page it is 10 https://linux.die.net/man/1/nice
I don't know, if we think about the test, I would say that the answer could be B - 0. https://learning.lpi.org/en/learning-materials/101-500/103/103.6/103.6_01/ Process Niceness Every normal process begins with a default nice value of 0 (priority 120).
niceness values range from -20 (most favorable to the process) to 19 (least favorable to the process). -n, --adjustment=N ==> add integer N to the niceness (default 10)
The default "nice level", which is set for processes started using the nice command in Unix systems, is 10. This means that if you start a process using the nice command without specifying the "nice" value, the process will receive a "nice" value set to 10.