  589

     ,
    SCHED_SPORADIC.   -
,   SCHED_SPORADIC,  -
 : sched_ss_low_priority, sched_ss_repl_period,
sched_ss_init_budget, sched_priority  sched_ss_max_repl.  -
      
sched_ss_repl_period      
sched_ss_init_budget;      -
.  ,       -
 sched_ss_max_repl     
[ 1, SS_REPL_MAX];      .

    pthread_setschedparam() 
      .

 

            pthread_getschedparam()
 pthread_setschedparam()   ;   
 ,   .



 pthread_getschedparam ()   , :

[ESRCH]           ,   thread,     -
   .

 pthread_setschedparam ()   , :

[EINVAL]     ,   policy,   
  ,    -
  policy, ;

[ENOTSUP]          
    ;

TSP [ENOTSUP]          -
,     SCHED_SPORADIC, 
,      ;

[EPERM]            -
     -
   ;

[EPERM]           
      ;

[ESRCH]      ,   thread,     -
   .

      [EINTR].