Obtains the scheduling policy attribute of the specified thread attributes object.
pthread_attr_getschedpolicy(
                            attr,
                            policy );
 
Argument         Data Type               Access
attr             opaque pthread_attr_t   read
policy           integer                 write
#includeint pthread_attr_getschedpolicy ( const pthread_attr_t *attr, int *policy);
Return Description0 Successful completion. [EINVAL] The value specified by attr is invalid.
pthread_attr_init pthread_attr_setschedpolicy pthread_create