Fork me on Gitee
摘要: 1. 概念 CountDownLatch是在JDK 1.5的时候被引入的,位于java.util.concurrent并发包中,CountDownLatch叫做闭锁,也叫门闩。允许一个或多个线程一直等待,直到其他线程执行完成后再执行。 2.工作原理 CountDownLatch通过一个计数器来实现的 阅读全文
posted @ 2023-04-23 23:24 shine-rainbow 阅读(26) 评论(0) 推荐(0) 编辑