/* This function set contentionscope attribute. 
PTHREAD_SCOPE_PROCESS signifying process scheduling contention scope. */
int pthread_attr_setscope(pthread_attr_t *attr, int scope)
/* This function set contentionscope attribute. 
PTHREAD_SCOPE_PROCESS signifying process scheduling contention scope. */
int pthread_attr_setscope(pthread_attr_t *attr, int scope)
{
    if (scope == PTHREAD_SCOPE_SYSTEM)
        return 0;
    if (scope == PTHREAD_SCOPE_PROCESS)
        return EOPNOTSUPP;
    return EINVAL;
}