刘小水的个人博客 青墨书晚风

CountDownLatch和Semaphore的区别和底层原理

CountDownLatch第一种用法 /** * 看大夫任务 */ public class SeeDoctorTask implements Runnable { private CountDownLatch countDownLatch; public SeeDoctor

liuxiaoshui liuxiaoshui 发布于 2023-12-08