Returns the value of the schedparam attribute of a thread attributes object.
Threads Library (libpthreads.a)
#include <pthread.h> #include <sys/sched.h> int pthread_attr_getschedparam (attr, schedparam) const pthread_attr_t *attr; struct sched_param *schedparam;
The pthread_attr_getschedparam subroutine returns the value of the schedparam attribute of the thread attributes object attr. The schedparam attribute specifies the scheduling parameters of a thread created with this attributes object. The sched_priority field of the sched_param structure contains the priority of the thread. It is an integer value.
attr | Specifies the thread attributes object. |
schedparam | Points to where the schedparam attribute value will be stored. |
Upon successful completion, the value of the schedparam attribute is returned via the schedparam parameter, and 0 is returned. Otherwise, an error code is returned.
The pthread_attr_getschedparam subroutine is unsuccessful if the following is true:
EINVAL | The attr parameter is not valid. |
This function does not return EINTR.
The pthread_attr_setschedparam (pthread_attr_setschedparam Subroutine) subroutine, pthread_attr_init (pthread_attr_init Subroutine) subroutine, pthread_getschedparam (pthread_getschedparam Subroutine) subroutine, the pthread.h file.
Threads Scheduling in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.
Threads Library Options and Threads Library Quick Reference in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.