162  4.  ++-   

 pthread_setschedprio ()     -
  ,     thread.
         
  prio.       ,
     .     
   . ,       -
,    . 4.7.

:       -
     .   -
      .    -
       ,    -
   ,         
   .

4.9.3.1.    

   ,     -
        
.       .



#include <pthread.h>

int pthread_attr_setscope(pthread_attr_t *attr,
int contentionscope) ;

int pthread_attr_getscope(

const pthread_attr_t *restrict attr,

int *restrict contentionscope) ;

 pthread_attr_setscope ()     -
 (  attr),    .  -
       contentionscope,
    .

PTHREAD_SCOPE_SYSTEM      
PTHREAD_SCOPE_PROCESS    

 pthread_attr_getscope ()     
  ,   attr.   
      contentionscope.  -
      0,      .

4.9.4.   sysconf ()

 ,     ,  -
    . ,  -
 ,    ,     -
 ,     .  sysconf () -
         .