Mac Developer Library Developer
Search

 

This manual page is for Mac OS X version 10.9

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • To learn how the manual is organized or to learn about command syntax, read the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Developer Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.




NICE(1)                   BSD General Commands Manual                  NICE(1)

NAME
     nice -- execute a utility with an altered scheduling priority

SYNOPSIS
     nice [-n increment] utility [argument ...]

DESCRIPTION
     nice runs utility at an altered scheduling priority.  If an increment is given, it is used; otherwise
     an increment of 10 is assumed.  The super-user can run utilities with priorities higher than normal by
     using a negative increment.  The priority can be adjusted over a range of -20 (the highest) to 20 (the
     lowest).

     Available options:

     -n increment
             A positive or negative decimal integer used to modify the system scheduling priority of
             utility.

DIAGNOSTICS
     The nice utility shall exit with one of the following values:

     1-125   An error occurred in the nice utility.

     126     The utility was found but could not be invoked.

     127     The utility could not be found.

     Otherwise, the exit status of nice shall be that of utility.

COMPATIBILITY
     The historic -increment option has been deprecated but is still supported in this implementation.

SEE ALSO
     csh(1), getpriority(2), setpriority(2), renice(8)

STANDARDS
     The nice utility conforms to IEEE Std 1003.2-1992 (``POSIX.2'').

HISTORY
     A nice utility appeared in Version 6 AT&T UNIX.

BUGS
     nice is built into csh(1) with a slightly different syntax than described here.  The form `nice +10'
     nices to positive nice, and `nice -10' can be used by the super-user to give a process more of the pro-cessor. processor.
     cessor.

BSD                              June 6, 1993                              BSD

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Feedback