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
1
#define NNODES 4
2
#include <stdio.h>
3
int node(int taskId) {
4
printf("Hello from task %d.\n", taskId) ;
5
return 0 ;
6
}
7
void real_main()
8
{
9
int i ;
10
for (i = 0 ; i < NNODES ; i++)
11
eval("worker", node(i)) ;
12
}
in Table To:
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