job priority

Keith Gabryelski ag at cbmvax.UUCP
Wed Aug 9 02:08:24 AEST 1989


It is always a toss up for me to post or reply when someone sends
incorrect or misleading information to this news group.  I have
succumbed to the former.

In article <962 at virtech.UUCP> cpcahil at virtech.UUCP (Conor P. Cahill) writes:
>In article <20533 at adm.BRL.MIL>, SIMSN%NUSDISCS.BITNET at cunyvm.cuny.edu writes:
>>In Sys V, is there a way you can raise the job's priority after sending
>>it to the background earlier on?
>
>There is no standard system call that can be used to modify the priority, or
>nice value, of an already existing process.

Correct.

>You can, however, using the
>symbol table in /unix modify the nice value in the process structure
>(in /dev/kmem, of course) for the indicated process.  Unless the permissions
>are really screwed up on your system, only the superuser will be able to
>do this.

This is also correct, but you failed to mention /etc/renice which
exists on many System V systems (from V2.0 atleast).  It does what
the requester wanted.

There are also several public domain versions floating around.  The
one that comes to mind was posted to a source group about a year ago.
The author was Michael Ditto (ford at kenobi.UUCP).

Pax, Keith
-- 
 "It took no computation to dance to the rock 'n roll station" -- Lou Reed
ag at cbmvax.commodore.com					...!uunet!cbmvax!ag



More information about the Comp.unix.questions mailing list