SUMMARY: Setting a running process priority

From: cknorr <cknorr_at_hops.com>
Date: Thu, 28 Jun 2001 16:00:48 -0400

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
Received on Thu Jun 28 2001 - 20:03:27 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT