for (int i = 0; i < 10; i++)
run(COUNT);
}
static void run(int count) throws Exception {
RecursiveAction lastTask = new RecursiveAction() {
@Override
protected void compute() {
}
};
final long start = System.nanoTime();
fjPool.submit(new MyTask(count, lastTask));
lastTask.get();
System.out.println("count: " + count + " time: " + TimeUnit.MILLISECONDS.convert(System.nanoTime() - start, TimeUnit.NANOSECONDS));
}