command: renice
purpose: alter priority of running processes
syntax: renice -[npguhv]
-n priority
-g process group IDs
-p pid
-u user
-h help
-v version
example:
1. to decrease the priority of a running process with pid 987
with nice value 10
$ ps axl | grep sample.sh
$ renice 15 -p 987
987 is the pid check the nice value now
$ ps axl | grep sample.sh
new nice value will be 15
2. to increase the priority of a running process with pid 999
with nice value 10
we need to be root to increase the priority of a process
# ps axl | grep sample.sh
# renice 4 -p 999
check the value now
# ps axl | grep sample.sh
new nice value will be 4
regards,
dhanasekar
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines