e.printStackTrace();
}
}
};
}
PerfmonService perfmon = new PerfmonService(3000);
if(enableStat) {
perfmon.start();
}
// Run threads
for(int i = 0; i < threads; i++) {
thrs[i].start();
}
_start = true;
try {
Thread.sleep(TIME_TO_EST);
} catch (InterruptedException e) {
}
_stop = true;
for(int i = 0; i < threads; i++) {
thrs[i].join();
}
if(enableStat) {
perfmon.stop();
}
long elapsedCpuTime = sunmx.getProcessCpuTime() - startCpuTime;
long numOps = 0L, cacheMisses = 0L, elapsed = 0L;
int ioContention = 0;