Regarding the command:



nice -5 /usr/bin/prog

Which of the following statements is correct?

A. /usr/bin/prog is executed with a nice level of -5.

B. /usr/bin/prog is executed with a nice level of 5.

C. /usr/bin/prog is executed with a priority of -5.

D. /usr/bin/prog is executed with a priority of 5.

題解

「nice」指令可以在執行指令的同時事先指定好行程的nice值。「-5」參數等同於「-n 5」,因此答案是選項B。如果要設定成「-5」(負五),參數應為「--5」或是「-n -5」。