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

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

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

A.
-10

B.
10

C.
20

D.
0



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Marten

Marten

according to IBM http://www.ibm.com/developerworks/linux/library/l-lpic1-v3-103-6/index.html:

Default niceness

You may have guessed from Listing 1 or Listing 2 that the default niceness, at least for processes started by regular users, is 0. This is usually the case on current Linux systems. You can verify the value for your shell and system by running the nice command with no parameters as shown in Listing 3.

Listing 3. Checking default niceness

ian@attic4:~$ nice
0

Reading this material, the answer should be: D 0

Rohanil

Rohanil

B is correct.

Default priority is 10 when process is started using nice.
& default priority is 0 when process is started without using nice.