pthread_getschedparam

Returns the schedule parameters for the specified thread.

Library:LibC
Classification:POSIX
Service:Threads

Syntax

  #include <pthread.h>
  
  int pthread_getschedparam (
     pthread_t             thread,
     int                  *policy,
     struct sched_param   *param);
  

Parameters

thread

(IN) Specifies the thread.

policy

(OUT) Points to the policy. For a list of possible values, see Section 55.1.1, Schedule Policies.

param

(OUT) Points to the schedule parameters for the policy.

Return Values

If successful, returns 0; otherwise, returns a nonzero error code:

Decimal

Constant

Description

77

ERSCH

The thread parameter does not refer to an existing thread.

Remarks

NetWare does not currently support multiple scheduling policies. It uses a default policy of FIFO.

See Also