attr
    Thread attributes object whose scheduling policy attribute is
    obtained.
 policy
    Receives the value of the scheduling policy attribute. Refer to
    the description of the pthread_attr_setschedpolicy() routine for
    valid values.