SCHED_GET_PRIORITY_MAX
NAMESYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
CONFORMING TO
SEE ALSO
COLOPHON
NAME
sched_get_priority_max, sched_get_priority_min − get static priority range
SYNOPSIS
#include <sched.h>
int sched_get_priority_max(int policy);
int sched_get_priority_min(int policy);
DESCRIPTION
sched_get_priority_max() returns the maximum priority value that can be used with the scheduling algorithm identified by policy. sched_get_priority_min() returns the minimum priority value that can be used with the scheduling algorithm identified by policy. Supported policy values are SCHED_FIFO, SCHED_RR, SCHED_OTHER, SCHED_BATCH, SCHED_IDLE, and SCHED_DEADLINE. Further details about these policies can be found in sched(7).
Processes with numerically higher priority values are scheduled before processes with numerically lower priority values. Thus, the value returned by sched_get_priority_max() will be greater than the value returned by sched_get_priority_min().
Linux allows the static priority range 1 to 99 for the SCHED_FIFO and SCHED_RR policies, and the priority 0 for the remaining policies. Scheduling priority ranges for the various policies are not alterable.
The range of scheduling priorities may vary on other POSIX systems, thus it is a good idea for portable applications to use a virtual priority range and map it to the interval given by sched_get_priority_max() and sched_get_priority_min(). POSIX.1-2001 requires a spread of at least 32 between the maximum and the minimum values for SCHED_FIFO and SCHED_RR.
POSIX systems on which sched_get_priority_max() and sched_get_priority_min() are available define _POSIX_PRIORITY_SCHEDULING in <unistd.h>.
RETURN VALUE
On success, sched_get_priority_max() and sched_get_priority_min() return the maximum/minimum priority value for the named scheduling policy. On error, −1 is returned, and errno is set appropriately.
ERRORS
EINVAL |
The argument policy does not identify a defined scheduling policy. |
CONFORMING TO
POSIX.1-2001.
SEE ALSO
sched_getaffinity(2), sched_getparam(2), sched_getscheduler(2), sched_setaffinity(2), sched_setparam(2), sched_setscheduler(2), sched(7)
COLOPHON
This page is part of release 3.69 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at http://www.kernel.org/doc/man−pages/.
More Linux Commands
manpages/perlsec.1.html
perlsec(1) - Perl security (Commands - Linux manual page)...
Perl is designed to make it easy to program securely even when running with extra privileges, like setuid or setgid programs. Unlike most command line shells, w
manpages/glGetColorTableParameter.3gl.html
glGetColorTableParameter(3gl) - get color lookup table param
Returns parameters specific to color table target. When pname is set to GL_COLOR_TABLE_SCALE or GL_COLOR_TABLE_BIAS, glGetColorTableParameter returns the color
manpages/sane-hp5590.5.html
sane-hp5590(5) - SANE backend for Hewlett-Packard 4500C/4570
The sane-hp5590 library implements a SANE (Scanner Access Now Easy) backend that provides access to the following Hewlett-Packard Workgroup/Document scanners: S
manpages/subwin.3ncurses.html
subwin(3ncurses) - create curses windows - Linux man page...
Calling newwin creates and returns a pointer to a new window with the given number of lines and columns. The upper left-hand corner of the window is at line beg
manpages/glNormal3s.3gl.html
glNormal3s(3gl) - set the current normal vector (Man Page)
The current normal is set to the given coordinates whenever glNormal is issued. Byte, short, or integer arguments are converted to floating-point with a linear
manpages/i386.8.html
i386(8) - change reported architecture in new program enviro
i386.8 - setarch currently only affects the output of uname -m. For example, on an AMD64 system, running setarch i386 program will cause program to see i686 ins
manpages/perlfaq1.1.html
perlfaq1(1) - General Questions About Perl - Linux man page
This section of the FAQ answers very general, high-level questions about Perl. What is Perl? Perl is a high-level programming language with an eclectic heritage
manpages/XDestroyWindowEvent.3.html
XDestroyWindowEvent(3) - DestroyNotify event structure......
The structure for DestroyNotify events contains: typedef struct { int type; /* DestroyNotify */ unsigned long serial; /* # of last request processed by server *
manpages/aio_read.3.html
aio_read(3) - asynchronous read (Library - Linux man page)
The aio_read() function queues the I/O request described by the buffer pointed to by aiocbp. This function is the asynchronous analog of read(2). The arguments
manpages/watch.1.html
watch(1) - execute a program periodically, showing output fu
watch runs command repeatedly, displaying its output and errors (the first screenfull). This allows you to watch the program output change over time. By default
manpages/XvShmCreateImage.3.html
XvShmCreateImage(3) - create an XvImage - Linux manual page
XvCreateImage(3) is similar to XCreateImage(3). XvShmCreateImage(3) is similar to XShmCreateImage(3). The library will allocate the XvImage structure and fill o
manpages/Tk_Draw3DPolygon.3.html
Tk_Draw3DPolygon(3) - draw borders with three-dimensional ap
These procedures provide facilities for drawing window borders in a way that produces a three-dimensional appearance. Tk_Alloc3DBorderFromObj allocates colors a
