550  



pthread_attr_getschedparam, pthread_attr_setschedparam 
    schedparam.



THR    #include <pthread.h>

int pthread_attr_getschedparam (

const pthread_attr_t *restrict attr,
struct sched_param *restrict param};

int pthread_attr_setschedparam (

pthread_attr_t *restrict attr,
const struct sched_param *restrict param};



 pthread_attr_getschedparam()  pthread_attr_setschedparam()
        -
  ,   attr.   param 
  <sched.h>.     SCHED_FIFO  SCHED_RR
    param  sched_pri ori ty.

            SCHED_SPORADIC 
    param: sched_pri ori ty,
sched_ss_low_priority, sched_ss_repl_period, sched_ss_inik_badget
 sched_ss_max_repl.     
,     sched_ss_repl_period
       sched_ss_ini t_
budget',      .  -
     , 
  sched_ss_ma.x__repl    -
  [1. {SS_REPL_MAX} ];   
  .

 

    pthread_attr_getschedparam()
 pthread_attr_setschedparam()   ;  
   ,   .



 pthread_attr_setschedparam ()   , :

[EINVAL]     ,   param, ;