nice

Increases or decreases process priority relative to the process current priority by the amount of the argument. This function is nonreentrant.

Format

#include  <unistd.h>

int nice  (int increment);

Argument

increment
As a positive argument, decreases priority; as a negative argument, increases priority. Issuing nice(0) restores the base priority. The resulting priority cannot be less than 1, or greater than the process's base priority. If it is, the nice function quietly does nothing.

Description

When a process calls the vfork function, the resulting child inherits the parent's priority.

See also vfork in this section.

Return Values
Indicates success. 
-1  Indicates failure. 


Previous Page | Next Page | Table of Contents | Index