Anonymous user
Distributed programming: Difference between revisions
→{{header|C}}: correction and comments
(→{{header|C}}: using PVM) |
(→{{header|C}}: correction and comments) |
||
Line 140:
printf("Spawning successful\n");
* The receiving order is intentionally swapped, just to show.
* task_id = -1 means "receive from any task"
*/
pvm_recv(-1, 2);
pvm_unpackf("%d %d", &i_data, &i2);
printf("got msg type
pvm_recv(-1, 1);
pvm_unpackf("%d %lf", &i_data, &f_data);
printf("got msg type
} else {
parent = pvm_parent();
|