diff options
Diffstat (limited to 'man2/sched_get_priority_max.2')
-rw-r--r-- | man2/sched_get_priority_max.2 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/man2/sched_get_priority_max.2 b/man2/sched_get_priority_max.2 index a962787d..0ae2aa9a 100644 --- a/man2/sched_get_priority_max.2 +++ b/man2/sched_get_priority_max.2 @@ -38,10 +38,10 @@ sched_get_priority_max, sched_get_priority_min \- get static priority range \fBint sched_get_priority_min(int \fIpolicy\fB); .fi .SH DESCRIPTION -.B sched_get_priority_max +.BR sched_get_priority_max () returns the maximum priority value that can be used with the scheduling algorithm identified by \fIpolicy\fR. -.B sched_get_priority_min +.BR sched_get_priority_min () returns the minimum priority value that can be used with the scheduling algorithm identified by \fIpolicy\fR. Supported \fIpolicy\fR values are @@ -52,8 +52,8 @@ and Processes with numerically higher priority values are scheduled before processes with numerically lower priority values. Thus, the value -returned by \fBsched_get_priority_max\fR will be greater than the -value returned by \fBsched_get_priority_min\fR. +returned by \fBsched_get_priority_max\fR() will be greater than the +value returned by \fBsched_get_priority_min\fR(). Linux allows the static priority value range 1 to 99 for \fISCHED_FIFO\fR and \fISCHED_RR\fR and the priority 0 for @@ -63,23 +63,23 @@ 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 -\fBsched_get_priority_max\fR and \fBsched_get_priority_min\fR. +\fBsched_get_priority_max\fR() and \fBsched_get_priority_min\fR(). POSIX.1b requires a spread of at least 32 between the maximum and the minimum values for \fISCHED_FIFO\fR and \fISCHED_RR\fR. POSIX systems on which -.B sched_get_priority_max +.BR sched_get_priority_max () and -.B sched_get_priority_min +.BR sched_get_priority_min () are available define .I _POSIX_PRIORITY_SCHEDULING in <unistd.h>. .SH "RETURN VALUE" On success, -.B sched_get_priority_max +.BR sched_get_priority_max () and -.B sched_get_priority_min +.BR sched_get_priority_min () return the maximum/minimum priority value for the named scheduling policy. On error, \-1 is returned, |