java CountDownLatch 实例
CountDownLatch使用其await()等待其他线程完成(使用减值为0来判断是否完成)。
是一个线程等待多个线程(1-N)的锁工具。
?
以下为实例代码:
,Yes,he is me.