Etiquette: Running Nice on other desktop machines: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
In this example, -19 would be a low priority and --19 would be a high priority. |
In this example, -19 would be a low priority and --19 would be a high priority. |
||
'''Renice''' allows you to. |
'''Renice''' allows you to reset the priority of a process that is already running. |
||
renice [-n] [PID] [options] |
|||
Replace [-n] with the desired priority, and [PID] with the process ID number. |
Revision as of 10:02, 26 May 2015
When using someone else's machine, it's polite to use the command nice and renice.
Nice changes the priority of a task. When using another machine, you want to set your task to a lower priority as to not interfere with the user's tasks. Priority ranges from -20 (highest) to 20 (lowest).
nice [options] [command]
Example:
nice -19 ~/run.py
In this example, -19 would be a low priority and --19 would be a high priority.
Renice allows you to reset the priority of a process that is already running.
renice [-n] [PID] [options]
Replace [-n] with the desired priority, and [PID] with the process ID number.