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


/ Published in: Bash
Save to your folder(s)

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"


Copy this code and paste it in your HTML
  1. #new process
  2. nice -n PRIORITYNUMBER PROCESSNAME
  3.  
  4. #existing process
  5. renice PRIORITYNUMBER PID_PROCESS

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.