Setting process priority

Use the nice command to run a program with modified scheduling priority. A child process inherits the nice value from the parent process. You can view the nice value with the ps -l command.

Note: Your shell may have its own version of nice, which usually supersedes the nice command. Please refer to your shell's documentation for details.

Use the renice command to alter priority of running processes.

Use taskset to set a process's CPU affinity.

Use chrt to change real-time attributes of a process.

For information about process priority, see:

  • man page for nice command.
  • man page for renice command.
  • man page for taskset command.
  • man page for chrt command.