[OpenBSD]

Manual Page Search Parameters

SCHED_GET_PRIORITY_MIN(3) Library Functions Manual SCHED_GET_PRIORITY_MIN(3)

sched_get_priority_max, sched_get_priority_min
get priority limits

#include <sched.h>

int
sched_get_priority_max(int policy);

int
sched_get_priority_min(int policy);

The sched_get_priority_max() and sched_get_priority_min() functions return the maximum and minimum priority values, respectively, for the scheduling policy specified by policy.

The scheduling policy for a thread can either be SCHED_FIFO (first in, first out), SCHED_RR (round-robin) or SCHED_OTHER.

Upon successful completion, sched_get_priority_max() and sched_get_priority_min() return the maximum and minimum priority values, respectively. Otherwise, a value of -1 is returned and errno is set to indicate the error.

The sched_get_priority_max() and sched_get_priority_min() functions will fail if:
[]
Invalid value for policy.

The sched_get_priority_max() and sched_get_priority_min() functions conform to IEEE Std 1003.1-2008 (“POSIX.1”).

This implementation does not support process scheduling.

November 7, 2010 OpenBSD-5.1