The
pthread_attr_getinheritsched() and
pthread_attr_setinheritsched() functions get and set, respectively, the inherit scheduler attribute,
inheritsched, in the
attr object. The
inheritsched parameter specifies whether a tread created by using
attr will obtain its scheduling attributes directly from
attr or whether it will inherit these from the calling thread.
Two values are possible for
inheritsched:
PTHREAD_INHERIT_SCHED
The thread scheduling attributes will be inherited from the creating thread and the ones in attr are ignored.
PTHREAD_EXPLICIT_SCHED
The thread scheduling attributes will be set to the corresponding values in attr.
The following thread scheduling attributes are affected by
inheritsched: