Row corresponds to ranks, and columns corresponds to data.
Input:
Output:
156157158159160161162163164165166
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.allGather(send[rank], recv[rank]); } }); t[i].start(); }