The nice command enables to adjust the priority of a command.
Syntax
# nice [-increment] command [Arguments]
To increase the priority of ps command, decrease the nice value.
# nice --10 ps
To decrease the priority of ps command, increase the nice value.
# nice -10 ps
Note1: By default a foreground process has a nice value of 20.
Note2: By default a background process has a nice value of 24.
Note3: Non Root users can only degrade the priority of their own commands.
Thanks
Tuesday, May 5, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment