Java5 多線程(六)--CountDownLatch 同步工具類

詳細代碼如下: public class CountdownLatchTest { public static void main(String[] args) { ExecutorService service = Executors.newCachedThreadPool(); final CountDownLatch cdOrder = new CountDownLatch(1); fina
相關文章
相關標籤/搜索