  655



pthread_setschedprio      -
  (REALTIME THREADS).



THRTPS # include <pthread.h>

int pthread_setschedprio(pthread_t thread, int prio};



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

     pthread_setschedprio () 
     .

 

    pthread_setschedprio ()  -
 ;      ,   .



 pthread_setschedprio ()   , :

[EINVAL]     prio     -
  ;

[ENOTSUP]        , -
  ;

[EPERM]           -
     ;

[EPERM]         , -
    ;

[ESRCH]    ,   thread,    -
 .

 pthread_setschedprio ()     [EINTR].



.