public static void main(String[] args) throws IOException { final long N = 1000000L; // 1000000L; final long expected = (N * (N + 1) / 2); final int THREADS = 4; long start = System.currentTimeMillis(); Parfio.loadProperties("write.Properties"); lc_omp.work(new _WriteWork(), 0, (int) N, 1, 1, THREADS); long end = System.currentTimeMillis(); lc_omp.work(new _ReadWork(), 1, 4); boolean pass = (_ReadWork.sum == expected); System.out.println("JOMP: Passs = " + pass); System.out.println("Total time (Writing): " + (end - start) + " ms"); Parfio.close(); lc_omp.finish(); }