Which instance of somecommand is run with the highest priority?

Consider the following commands

A) $ nice -n 1 /usr/bin/somecommand
B) $ nice -n 5 /usr/bin/somecommand
C) $ nice -n 10 /usr/bin/somecommand

Which instance of somecommand is run with the highest priority?

Consider the following commands

A) $ nice -n 1 /usr/bin/somecommand
B) $ nice -n 5 /usr/bin/somecommand
C) $ nice -n 10 /usr/bin/somecommand

Which instance of somecommand is run with the highest priority?

A.
A

B.
B

C.
C

D.
none, only superuser can change the priority

Explanation/Reference:
The lower the nice-value the higher the priority, so A is the correct value.
Only the superuser may set negative values, but since A, B and C are using positive values this is irrelevant for this Question.



Leave a Reply 2

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


sara

sara

after pressing “show answer” correct answer not changing his color to green..

Francisco Ricardo Voces

Francisco Ricardo Voces

Si en lo que se refiere a cambiar la prioridad bajo el comando nice, que por defecto los arranca con valor 10, el usuario que ejecuta nice, puede efectivamente cambiar el valor por defecto del nice (10) a cualquier valor inferior, siempre y cuando no sea inferior a 0, por tanto, se puede considerar que dentro de A,B,C el nivel con prioridad superior es A).

Cuidado!!!, si consideramos que el nivel MAS prioritario es -20, ese valor es exclusivo del usuario root.

PREGUNTA TRAMPA??????