Standard C Library Functions pthreadsetschedprio(3C)
NAME
pthreadsetschedprio - dynamic thread scheduling parameters
access
SYNOPSIS
cc -mt [ flag... ] file... -lpthread [ library... ]
#include
int pthreadsetschedprio(pthreadt thread, int prio);
DESCRIPTION
The pthreadsetschedprio() function sets the scheduling
priority for the thread whose thread ID is given by thread
to the value given by prio.
If the pthreadsetschedprio() function fails, the scheduling
priority of the target thread is not changed.
RETURN VALUES
If successful, the pthreadsetschedprio() function returns
0; otherwise, an error number is returned to indicate the
error.
ERORS
The pthreadsetschedprio() function will fail if:
EINVAL The value of prio is invalid for the scheduling
policy of the specified thread.
EPERM The caller does not have the appropriate permis-
sion to set the priority to the value specified.
ESRCH The value specified by thread does not refer to an
existing thread.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 1 Apr 2008 1
Standard C Library Functions pthreadsetschedprio(3C)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
Standard See standards(5).
SEE ALSO
pthreadgetschedparam(3C), attributes(5), standards(5)
SunOS 5.11 Last change: 1 Apr 2008 2
|