          , ,
 .

for (   ) {

  

   
)

        
   .     .

      .  ,  
    () ,  n     .

       -  
       .  
      .

       
       .

  ,    (   
  -   Linux).

   Linux     -
 .         
 :  {active)   (expired).   -
  ,      
 ,       .  
     ,  -
   .      - 
  ,   ,       -
 ,       . 
         
    .       
,         ,  
   .      -
 schedule ().

struct prio_array array = rq->active;

if (!array->nr_active) {

rq->active = rq->expired;

rq->expired = array;

}

      0(1)-. 
          
 , 0(1)-    -
 .       .

76  4