[vox-tech] how to be not nice within C

Nicole Carlson vox-tech@lists.lugod.org
Mon, 25 Mar 2002 17:49:59 -0800 (PST)


On Mon, 25 Mar 2002, Peter Jay Salzman wrote:
> is there a way for an executable written in C to change its own nice
> value?
> is there a system call that does this sort of thing?

Not that I've tried this or anything, but have you tried
  system('renice 10');
?

(or whatever value you want, or sprintf(buffer, 'renice ', value) and
system(buffer) to get a variable in there)

--nicole twn
***
"I know it's only trouble, I know it makes us real; but I could use just a
month or two or ten to heal..."--Peter Mulvey
Visit Nicolopolis! http://wwwcsif.cs.ucdavis.edu/~carlsonn
nmcarlson@ucdavis.edu ana.ng@tmbg.org carlsonn@seclab.cs.ucdavis.edu