11.3.    397

     ,  ,  -
   PVM-. ,   PVM- 
  .   ""  ""   -
   pvm_send  pvm_recv,    
   .   pvm_stream    -
 ,       
  .

 pvm_stream (. . 11.4)   mutex.  mutex  -
    ,    
pvm_stream.  pvm_stream       
 .      pvm_stream  -
 pvm_send  pvm_receive   . 11.5.

PVM-  PVM- 

pvm_stream                                        pvm_stream

 mutex  mutex

  : { pvm_send()}
  : { pvm_receive()}

PVM- 

  : { pvm_send()}
  : { pvm_receive()}

 1


""

 2


""

  "

. 11.5.      pvm_stream   pvm_send
 pvm_receive

         .
 mios,      pvm_stream,  
 .        mutex.

         
 Mutex.

//  11.15.   ""  ""
//                  pvm_stream

pvm_stream &pvm_stream::operator(int Data)
{

//. . .

Mutex.lock() ;

reset() ;

pvm_pkint(&Data,1,1) ;

pvm_send(TaskId,MessageId) ;

Mutex.unlock() ;

//. . .

return(*this);