 sched_get_priority_min ()     -
        -
.       
  (MAX_USER_RT_PRIO-1) ,    1.

    nice ()    -
       .  
root    , ..   
nice    .  nice ()  
 set_user_nice () ,     static_prio 
prio  task_struct.

    

  Linux     
(processor affinity).       -
          ,  
  : "      -
     ".    
      cpus_allowed  task_struct.  
         .  -
      1,     
     .    
sched setaffinityO        
 .   sched_getaffinity ()  -
    cpus_allowed.

      . -, -
         .
      ,   -
       . --
,    ,     (mig-
ration threads)      . ,
      ,   -
    cpus_al lowed  .

  

  Linux    sched yield ()
 ,        
   .     
     (     ,
   )       -
 .       ,   -
         ,
   ,       ,  
     .     
       ,   
.            -
  (     ).    

92                                                                            4