Why is the nice command failing?

View the output below. As oracle user, you run the following command on your Oracle Linux
6 system: [oracle@dbhost ~ ] $ [oracle@dbhost ~] $ nice – – 10 ./myscript.sh & [1] 2735
[oracle@dbhost ~] $ nice: cannot set niceness: permission denied Why is the nice

command failing?

View the output below. As oracle user, you run the following command on your Oracle Linux
6 system: [oracle@dbhost ~ ] $ [oracle@dbhost ~] $ nice – – 10 ./myscript.sh & [1] 2735
[oracle@dbhost ~] $ nice: cannot set niceness: permission denied Why is the nice

command failing?

A.
A nice value of -10 is not the permissible niceness range.

B.
A negative nice value can be set by the root user.

C.
There is already another process running with same niceness value on this system.

D.
Shell scripts cannot be assigned a negative nice value.



Leave a Reply 1

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


hoge

hoge

To change the niceness of a running process to a negative value we will use the renice command again.
It is important to note that changing a processes niceness value to a negative value requires root privileges. As the effects of giving a process a higher priority could have detrimental effects on a system.