Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Controle de buffers - Exemplo<br />
void slave(int parent){<br />
int mytid, token, bufid;<br />
mytid = pvm_mytid();<br />
/* Recebe primeira mensagem */<br />
bufid = pvm_recv(parent, 1);<br />
pvm_upkint(&token, 1, 1);<br />
printf("Recebi o valor %d.\n", token);<br />
/* Recebe segunda mensagem */<br />
bufid = pvm_recv(parent, 1);<br />
pvm_upkint(&token, 1, 1);<br />
printf("Recebi o valor %x.\n", token);