588  



pthread_getschedparam, pthread_setschedparam   
      (REALTIME THREADS).



THRTPS #include <pthread.h>

int pthread_getschedparam (

pthread_t thread,

int *restrict policy,

struct sched_param *restrict param);

int pthread_setschedparam (

pthread_t thread,

int policy,

const struct sched.Jparam *param) ;



 pthread_getschedparam()  pthread_setschedparam() -
        
     .   
 SCHED_FIFO  SCHED_RR   sched_param   -
     sched_priority ( ).  
SCHED_OTHER    .

 pthread_getschedparam()    
      , -
  (ID)    thread.   -
   policy  param.  pthread_getschedparam () -
  ,       -
     pthread_setschedparam(),      pthread_setschedprio()      
pthread_create ()   .      -
,         -
.  pthread_setschedparam()   , ID  -
  thread,     
    pol icy  param .

 policy    SCHED_OTHER, SCHED_FIFO  SCHED_RR.
    ,  
SCHED_OTHER,  .   , 
 SCHED_FIFO  SCHED_RR,     priori ty.

TSP       _POSIX_THREAD_SPORADIC_SERVER, 
pol icy    SCHED_SPORADIC (  
pthread_setschedparam()).      -
      SCHED_SPORADIC,  -
    , ..   