4.8.   141

           -
.       , 
 (struct)  ,    ,  -
      .

4.8.1.   

  ,       , 
   .     -
    .   (id)     -
,    .    , 
   pthread_self ().



#include <pth.read.li>

pthread_t pthread_self(void);

    getpidf)  .   
       . 
       .
      ,    
(   )   .  pthread_sel? ()
  ,     .

    :

II...
pthread_t Threadid;

Threadid = pthread_sel?();

   pthread_self (),  ,  
( ),    Threadid  pthread_t.

4.8.2.  

 pthread_join()      -
    .     -
     ,     .  
     wait (),  . 
    ,        , 
   ( ) , ,  ,   -
  .  pthread_join()   
 ,     .  -
          . 
      ( ) -
,       (detached)  (. 
).       
pthread_j oin ()      ,     .