for (int i = 0; i < n; i++)
for (int j = 0; j < n; j++) {
fork = new UserThread(global, i, j, n);
fork.start((PE)e.next(), join);
}
join.waitFor();
// Print out the result
Matrix matrix = (Matrix) global.open("r");
System.out.println("The result matrix is: ");
System.out.println(matrix);
try { global.release(); } catch (AlephException x) {}