摘要: 一、CountDownLatch CountDownLatch是一个计数器类,用来控制线程等待其他线程执行完毕再继续执行。这个类通常用于主线程等待多个子线程完成任务后再进行下一步操作。CountDownLatch的实现基于AQS(AbstractQueuedSynchronizer),使用了共享锁的 阅读全文
posted @ 2024-05-13 17:45 juyss 阅读(2) 评论(0) 推荐(0) 编辑