GUC-5 CountDownLatch闭锁

/* * CountDownLatch :闭锁,在完成某些运算是,只有其他所有线程的运算全部完成,当前运算才继续执行 */ public class TestCountDownLatch { public static void main(String[] args) { final CountDownLatch latch = new CountDownLat...
posted @ 2019-03-05 13:46  濤叔  阅读(131)  评论(0编辑  收藏  举报