218219220221222223224225226227228
for (int i = 0; i < t.length; ++i) { final int rank = i; t[i] = new Thread(new Runnable() { public void run() { Communicator comm = coll.createCommunicator(rank); comm.reduce(send[rank], recv, Reductions.sum(), 0); } }); t[i].start(); }