101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 99


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

Show Answer
Correct Answer: BC

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.

Discussion

17 comments
Sign in to comment
fightingfighterOption: B
Mar 13, 2020

If you start a command with nice it'll be 10, if you start command without nice it'll be 0.

iwkno6
Jul 28, 2021

agreed!

Mchoeti
Mar 23, 2023

right you are right as mentioned before, https://linux.die.net/man/1/nice

3glagOption: C
Mar 25, 2020

C is correct answer

LazylinuxOption: C
Apr 6, 2022

Tested and it is C - value of 10

blk_542Option: C
Nov 20, 2022

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

anhcqOption: C
Nov 26, 2021

it's 10 if the command is started with nice

wvdw1962Option: B
Jan 10, 2022

according the LPIC-1 Study Guide (Breshnahan/Blum) chapt.2, page 120: The default niceness level is zero. Must be answer B

wvdw1962
Jan 17, 2022

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.

peppinielloOption: C
Nov 4, 2023

command + nice =10

cesarvasquezOption: B
Nov 1, 2021

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

alitosdavilaOption: C
Mar 14, 2022

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

gonzalocoOption: C
Apr 19, 2022

C i think

blk_542
Nov 20, 2022

Also saw C as correct in another guide.

k3n_Option: C
Jan 7, 2023

Acordding to man page, default is 10. https://linux.die.net/man/1/nice

k3n_Option: C
Jan 7, 2023

Checked the man page.

MchoetiOption: C
Mar 23, 2023

Please check the man page it is 10 https://linux.die.net/man/1/nice

Jos015Option: B
Jul 12, 2023

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).

ResekoOption: C
Sep 1, 2023

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)

RaafiikOption: C
Jan 9, 2024

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.