From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653649622141.tru64-unix-managers.marc@archive.invalid> From: cknorr Date: Thu, 28 Jun 2001 20:00:48 +0000 To: tru64-unix-managers Subject: SUMMARY: Setting a running process priority X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653649622141 Original Question: Pretty basic stuff here - I've never mucked around that much with changing Unix process priorities. I was surprised that the nice command doesn't accept a pid, which would allow someone with appropriate permissions (root) to change the priority of a running process. On the other hand the setpriority() system call would seem to allow this to be done if I were to write some simple C code. I'm I pretty much on target here? Answer: The answers came in fast and furious and were all basically the same - too numerous to name. I picked out the response I got from Steve VanDevender, which was: 'nice' just starts a process with a desired priority adjustment (negative nice values increase process priority, postive values decrease it). 'renice' lets you change the nice value of an existing process. Normal users can only increase the nice value of their own processes; root can set the niceness of any process to anything it wants. Thanks to everyone as always! Chris