Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!usc!jarthur!nntp-server.caltech.edu!over!beau From: beau@over..caltech.edu (B. Thomas Adler) Newsgroups: comp.sys.hp Subject: setpriority() in hpux? Message-ID: Date: 1 Sep 90 21:02:27 GMT Sender: news@laguna.ccsf.caltech.edu Distribution: comp Organization: California Institute of Technology Lines: 20 I'm trying to port the "top" program to HPUX, and I've gotten everything working, except for one feature... the one to renice a process. This is accomplished by the setpriority(2) command in 4.3BSD, and the closest I could find was nice(2) system call. Unfortunately, nice(2) only allows you to modify the "niceness" of the calling program, but I'd like to be able to nice other processes as well. Another candidate was rtprio(2), but that only modifies the run-time priority, and not the "niceness" value. Any clues, hints, ideas, or solutions? BTW, I'm running HPUX 7.0 on hp9000s300 machines. -Bo Adler beau@betwixt.cs.caltech.edu -- B. Thomas Adler <...!ames!elroy!cit-vax!adler>