Linda - Parallel “Hello World”

Linda - Parallel “Hello World”

#define NNODES 4

#include

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)) ;

}

Previous slide Next slide Back to the first slide View Graphic Version