sched_get_priority_min()

get minimum priority value for scheduling policy 

Function


SYNOPSIS


SYNOPSIS

#include <sched.h>

int sched_get_priority_min(int policy);


DESCRIPTION

The sched_get_priority_min() gets the minimum priority value for the specified scheduling policy. Valid scheduling policies include SCHED_FIFO, SCHED_OTHER, and SCHED_RR.


PARAMETERS

policy 

Is the scheduling policy; one of the values specified in the DESCRIPTION section.


RETURN VALUES

On success, sched_get_priority_min() returns the appropriate priority value. On error, it returns -1 and sets errno to one of the following values:

EINVAL 

policy does not specify a valid scheduling policy.


CONFORMANCE

POSIX.1 (1996).


MULTITHREAD SAFETY LEVEL

MT-safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
pthread_attr_setschedparam(), pthread_attr_setschedpolicy(), pthread_setschedparam(), sched_get_priority_max()


PTC MKS Toolkit 10.4 Documentation Build 39.