Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.programmer,ncr.sys.unix Subject: Re: Nice'ing processes Keywords: Nice, programatic Message-ID: <1991Mar20.130832.27505@athena.mit.edu> Date: 20 Mar 91 13:08:32 GMT References: <314@secola.Columbia.NCR.COM> Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 20 In article <314@secola.Columbia.NCR.COM>, krupczak@secola.Columbia.NCR.COM (Bobby Krupczak) writes: |> I have had difficulty sorting through the maze of SysV.4 programming |> documentation regarding nicing processes. |> |> Does anyone know how to nice a process programmatically (that is inside |> a C program)? Well, I'm looking at the nice(2) man page for our SysV system, and I don't see anything "maze"-like or really difficult to understand. You call nice(incr) where incr is a positive number to make your process nicer, or a negative number to make your process less nice. If this doesn't answer your question, could you be a bit more specific about exactly what trouble you're asking? -- Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710