Notification Example
int tids[2], x, I;
pvm_spawn(“myprog”,(char **)0, 0, ““, 2, tids);
pvm_notify(PvmTaskExit, 666, 2, tids);
for (I=0; Iɚ I++){
pvm_recv( -1, 666 );
pvm_unpackf( “%d”, &x);
printf( “t%x exited\n”, x);
}
Previous slide
Next slide
Back to first slide
View graphic version