* SUMMARY: Setting a running process priority
@ 2001-06-28 20:00 cknorr
0 siblings, 0 replies; only message in thread
From: cknorr @ 2001-06-28 20:00 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-06-28 20:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-28 20:00 SUMMARY: Setting a running process priority cknorr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox