// time_mp2.java four computational threads for four processors import java.lang.management.ManagementFactory; import java.lang.management.ThreadMXBean; public class time_mp2 { static final int nthread = 2; int cfctr = 4000000; // computation iterations for delay static double cpu_start[] = new double[nthread]; // for each thread static double cpu_end[] = new double[nthread]; Thread t[] = new Thread[nthread]; time_mp2() { System.out.println("time_mp2 constructor starting"); for(int i=0; i