MPI process synchronization
问题 I'm still confused about the implementation of my program using MPI. This is my example: import mpi.*; public class HelloWorld { static int me; static Object [] o = new Object[1]; public static void main(String args[]) throws Exception { //10 processes were started: -np 10 MPI.Init(args); me = MPI.COMM_WORLD.Rank(); if(me == 0) { o[0] = generateRandBoolean(0.5); for(int i=1; i<10;i++) MPI.COMM_WORLD.Isend(o, 0, 1, MPI.OBJECT, i,0); if((Boolean)o[0]) MPI.COMM_WORLD.Barrier(); } else { (new