[Previous] [Contents] [Next]

pthread_setschedparam()

Set thread scheduling parameters

Synopsis:

#include <pthread.h>

int pthread_setschedparam(
               pthread_t thread,
               int policy,
               const struct sched_param* param );

Library:

libc

Description:

The pthread_setschedparam() function sets the scheduling policy and associated scheduling parameters of thread thread to the values specified in policy and param.

Returns:

EOK
Success.
EINVAL
Invalid scheduling policy policy or parameters param.
ENOTSUP
Unsupported scheduling policy policy or parameters param.
EPERM
Insufficient privilege to modify scheduling policy policy or parameters param.
ESRCH
Invalid thread ID thread.

Classification:

POSIX 1003.1 (Threads)

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

pthread_getschedparam()


[Previous] [Contents] [Next]