Sharing Data

 

$username@machine [~/temp2] % mpcc -O3 -o bcast bcast.c
$username@machine [~/temp2] % poe bcast -rmpool 1 -procs 4
10
Process 0 got 10
Process 1 got 10
Process 2 got 10
Process 3 got 10
22
Process 0 got 22
Process 1 got 22
Process 2 got 22
Process 3 got 22
-1
Process 0 got -1
Process 1 got -1
Process 2 got -1
Process 3 got -1