PrepAway - Latest Free Exam Questions & Answers

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.

2 Comments on “Which instance of somecommand is run with the highest priority?

  1. Francisco Ricardo Voces says:

    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??????




    0



    0

Leave a Reply