240  6.    ...

  pvm_recv ()     , -
   400002.   (messageid), 
    400002,     2.  
          float.
   pvm_recv ()      ,    -
 ,  pvm_nrecv ()     -
.      , 
pvm_nrecv ()  .      -
  pvm_nrecv ()   ,     
 .   ,  pvm_nrecv ()  -
 .     ,  
 0.       ,  -
    .  taskid  
-.  messageid   , -
 .  taskid = -1,  pvm_nrecv()  -
   .  messageid = -1,     -
.       pvm_recv ()  pvm_nrecv ()
   ,     .

   pvm_recv(), pvm_nrecv()  pvm_trecv()  -
    ,  pvm_precv()  
  ,  .  taskid -
  -.  messageid 
 .  buffer     -
.         
   ,     
buffer.  size     .  type -
  ,   .  type   -
 :

PVM_STR        PVM_BYTE
PVM_SHORT      PVM_INT
PVM_FLOAT      PVM_DOUBLE
PVM_LONG       PVM_USHORT
PVM_CPLX       PVM_DCPLX
PVM_UINT       PVM_ULONG

 pvm_trecv()     -
     .    -
         -
,      ,   timeout.
      timeval,   -
 time.h,:

tt include "pvm3.h"

// . . .

struct timeval TimeOut;

TimeOut.tv_sec = 1000;

int Taskid;

int Messageid;