// matmul_thread8.java for compare with matmul_thread8 import java.lang.management.ManagementFactory; import java.lang.management.ThreadMXBean; public class matmul_thread8 { int nthread = 8; double cpu_start[] = new double[nthread]; // for each thread double cpu_end[] = new double[nthread]; int DIM = 2048; double a[][] = new double[DIM][DIM]; double b[][] = new double[DIM][DIM]; double c[][] = new double[DIM][DIM]; Thread t[] = new Thread[nthread]; ThreadMXBean tb = ManagementFactory.getThreadMXBean(); public matmul_thread8() { double twall = 0.0, tcpu = 0.0, total_tcpu; System.out.println("matmul_thread8.java running"); System.out.println("DIM="+DIM+", nthread="+nthread); // initialize arrays (not timed) for(int i=0; i