552  



pthread_attr_getschedpolicy, pthread_attr_setschedpolicy  
    schedpol-icy (REALTIME THREADS).



THRTPS # include <pthread.h>

int pthread_attr_getschedpolicy (

const pthread_attr_t *restrict aktr,
int *restrict policy);

int pthread_attr_setschedpolicy (

pthread_attr_t *atkr,
int policy);



 pthread_attr_getschedpolicy()  pthread_attr_setschedpolicy()
       schedpolicy
  ,   a t tr.

     
SCHED_FIFO, SCHED_RR  SCHED_OTHER,    -
 < sched.h>.

TSP         ,     -
 SCHED_FIFO, SCHED_RR  SCHED_SPORADIC,  -
 ,    ( ) 
 .

 

    pthread_attr_getschedpolicy()
Hpthread_attr_setschedpolicy()   ;  
   ,   .



 pthread_attr_setschedpolicy ()   , :

[EINVAL]   ,   policy, ;

[ENOTSUP]       , 
  .

      [EINTR].