11.2.   -  ... 385

pvm_stream & operator (string X) ;

pvm_stream & operator (int X) ;

pvm_stream &operator (float X) ;

pvm_stream &operator(string X) ;

//. . .
};

    x_queue,  Mutex    ,
      pvm_stream. ,  
    ""  .

//  11.6.    
//                pvm_stream

pvm_stream &pvm_stream::operator(string X)
{

//. . .

pvm_pkbyte(const_cast<char *>(X.data()),X.size(),1) ;

Mutex. lock() ;

pvm_send(TaskId,MessageId) ;

Mutex.unlock() ;

//. . .

return(*this) ;

}

 pvm_stream   Mutex     
    ,       x_queue. 
,      pthread^mutex-. -
        .   -
       lock ()  unlock (). 
,   ,  pthread_mutex_t*-nepeMeHHyio  -
  pthread.Jnutex-. ,    -
   mutex,        -
 Pthread.      Pthread-   
 mutex,        .

11.2.   -
   


         -
,   API-   .
  , ,     Pthreads, MPI,
         
  .        -
  .      .     -
 ,        -
 ,      .
          -
.      ,   