Basic HTML version of Foils prepared May 7 1996

Foil 110 Linda - Parallel "Hello World"

From MetaComputing -- MRA Meeting Part I:Concepts and Issues Tutorial for CRPC MRA Meeting at Cornell -- May 7 1996. by Mark Baker, Geoffrey Fox


#define NNODES 4
#include <stdio.h>
int node(int taskId) {
printf("Hello from task %d.\n", taskId) ;
return 0 ;
}
void real_main()
{
int i ;
for (i = 0 ; i < NNODES ; i++)
eval("worker", node(i)) ;
}



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Apr 11 1999