4344454647484950515253
executor.submit(new Callable() { public Object call() throws Exception { Thread.sleep(1000); barrier.single(11); count.countDown(); return null; } });
7879808182838485868788
} }); } Thread.sleep(1000); for (int i = 0; i < 10; i++) { barrier.single(i); } count.await(); executor.shutdown(); } catch (InterruptedException e) { want.fail();