5.3.    205

5.3.4.  

    ,   
 ,  .   ,    ,
      ( )    
.        -
   .     -
 -     ,     
      -
.       UNIX Network Programming  
  (W. Richard Stevens): "    -
,    ".

  4.6 -""  :

15 while(TextFiles.empty())

16 {}

-""      ,   
TextFiles  .      . -
"   ,  ,    
. -""     ,    ,
     .

    pthread_cond_t.    -
,    :

 ;

 ;

 ;

     ;

  ;

  ;

      
        .     
pthread_cond_t,    ,   . 5.7.

 5.7.   pthread_cond_t,  
  

                    ()
ttinclude <pthread.h>

   int pthread_cond_init (

pthread_cond_t '"restrict cond,
const pthread_condattr_t *restrict attr) ;

pthread_cond_t cond =

PTHREAD_COND_INIIALIZ ER;