We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

yuconner on 09/03/06


Tagged

linux commands scheduler


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

yuconner


how to set the nice value of a process (priority execution)


Published in: Bash 


URL: http://learnlinux.tsf.org.za/courses/build/internals/ch07s02.html

Example: nice -n 10 date priority for root: -20 (higher priority) .. 19 (lower priority) priority for common users: 0..19 To list process and nice value: "ps -el"

  1. #new process
  2. nice -n PRIORITYNUMBER PROCESSNAME
  3.  
  4. #existing process
  5. renice PRIORITYNUMBER PID_PROCESS

Report this snippet 

You need to login to post a comment.