krupczak@secola.Columbia.NCR.COM (Bobby Krupczak) (03/19/91)
Hi! 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)? Thanks Bobby
jik@athena.mit.edu (Jonathan I. Kamens) (03/20/91)
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
borcher@cs-col.Columbia.NCR.COM (Tom Borcher) (03/22/91)
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)? > How about "nice(2)" or "priocntl(2)"?