Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "def.h"
- #include <sys/unistd.h>
- main() {
- int mytid;
- int who, iteration;
- char hostname[128];
- mytid = pvm_mytid();
- gethostname(hostname, sizeof hostname);
- pvm_recv (-1, MSG_MSTR);
- pvm_upkint (&who, 1, 1);
- pvm_upkint (&iteration, 1, 1);
- pvm_initsend (PvmDataDefault);
- pvm_pkint (&iteration, 1, 1);
- pvm_pkstr (hostname);
- pvm_send(who, MSG_SLV);
- pvm_exit();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement