578  



pthread_create    .



THR    #include <pthread.h>

int pthread_create (pthread_t *restrict thread,

const pthread_attr_t *restrict afctr,
void * (*star?_roufc-ine) (void*),
void *restrict arg);



 pthread_create ()       
 ,   attr.    a t tr- NULL,
 ,   .  ,  -
 attr,   ,      
  .     pthread_create ()  ID-
     ,   thread.

     skart_routine,  
   arg.   s tar t_rou tine   -
,    ,         
pthread_exit (),      (exit status) ,
  s tar t_rou tine.    ,  ,  -
    main(),   
start_routine.     main ()   ,   
      exit (),    -
  ,   main ().

        :

       ;

        .

         -
 .

    pthread_create ()   ,
  ,   thread,  .

           _POSIX_THREAD_CPUTIME,   -
      (CPU-time clock),
         .

 

    pthread_create ()   -
;      ,   .