You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Mensagens - Exemplo<br />
void slave()<br />
{<br />
int mytid, parenttid;<br />
char buf[100], hostName[64];<br />
mytid = pvm_mytid();<br />
parenttid= pvm_parent();<br />
gethostname(hostName, 63);<br />
sprintf(buf, "Eu sou o escravo t%x, falando de %s.",<br />
mytid,hostName);<br />
pvm_initsend(PvmDataDefault);<br />
pvm_pkstr(buf);<br />
pvm_send(parenttid, 1);<br />
printf("Eu sou o escravo t%x avisando que já enviei a<br />
mensagem para t%x.<br />
}