About Red Hat Partner Programmes Training Support and Docs Products and Services
  downloadstorecart
red hat logo search    
redhat.comredhat network
Red Hat Documentation: man pages: man2: Linux Programmer's Manual (2)

Manpage of NICE

NICE

Section: Linux Programmer's Manual (2)
Updated: March 28, 2025
Index  

NAME

nice - change process priority  

SYNOPSIS

#include <unistd.h>

int nice(int inc);  

DESCRIPTION

nice adds inc to the priority for the calling pid. Only the superuser may specify a negative increment, or priority increase.

Note that internally, a higher number is a higher priority. Do not confuse this with the priority scheme as used by the nice interface.  

RETURN VALUE

On success, zero is returned. On error, -1 is returned, and errno is set appropriately.  

ERRORS

EPERM
A non-super user attempts to do a priority increase, a numerical decrease, by supplying a negative inc.
 

CONFORMING TO

SVr4, SVID EXT, AT&T, X/OPEN, BSD 4.3. SVr4 documents an additional EINVAL error code.  

SEE ALSO


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
CONFORMING TO
SEE ALSO

This document was created by using the manual pages.
Time: 11:56:06 GMT, March 24, 2025

 

 
 
© 2001 Red Hat, Inc. All rights reserved.       About Red Hat   :   Legal statement   :   Privacy statement   :   Y2K statement   :   Contact Red Hat