.    ,     
TASK_RUNNING.     (wake up) -
    .

 TASK UNINTERRUPTIBLE   TASK_INTERRUPTIBLE,  -
 ,        .
  ,       
,       .  
       , TASK_UNINTERRUPTIBLE -
  ,  TASK^INTERRUPTIBLE*'.

 TASK ZOMBIE   ,      
   wait 4 ().     -
   ,     
  .      wait4 (),
   .

 TASK_STOPPED    .    
   .   ,    -
-   SIGSTOP, SIGTSTP, SIGTTIN  SIGTTOU,   
    ,      .

   

       .
     

set task state(task, state);

/*   'task'   'state' */,

      .  ,
        (memory barrier),  -
       (-
   SMP-).      :

task->state = state;

 set_current_state (state)     set_task_
state (current,state).

 

         
.       (executable)    -
  .      -
 .      (.  5,
" ")    ,   -
   .

 -     "" ,   
5 (1)   ,  D.       ,  -
   SIGKILL.  ,      ,   
,  ,  -      .

                       .                                    51