RTEMS Logo

RTEMS 4.10.2 On-Line Library


Thread Manager pthread_setschedparam - Set Thread Scheduling Parameters

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

17.4.24: pthread_setschedparam - Set Thread Scheduling Parameters

CALLING SEQUENCE:

#include <pthread.h>

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

STATUS CODES:

EINVAL
The scheduling parameters indicated by the parameter param is invalid.
EINVAL
The value specified by policy is invalid.
EINVAL
The scheduling policy was SCHED_SPORADIC and the specified replenishment period is less than the initial budget.
EINVAL
The scheduling policy was SCHED_SPORADIC and the specified low priority is invalid.
ESRCH
The thread indicated was invalid.

DESCRIPTION:

The pthread_setschedparam routine is used to set the scheduler parameters currently associated with the thread specified by thread to the policy specified by policy. The contents of param are interpreted based upon the policy argument.

NOTES:

As required by POSIX, RTEMS defines the feature symbol _POSIX_THREAD_PRIORITY_SCHEDULING to indicate that the family of routines to which this routine belongs is supported.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2008 OAR Corporation