// inheritsched = explicit, so that we can explicitly set the attributes
CHK(pthread_attr_setinheritsched(attr,PTHREAD_EXPLICIT_SCHED));
// inheritsched = explicit, so that we can explicitly set the attributes
CHK(pthread_attr_setinheritsched(attr,PTHREAD_EXPLICIT_SCHED));