CountDownLatch测试
摘要:/** * 调用方法 countDown(),会将初始化的值减少一次; * 调用方法 await(),线程会在此等待,直到计时器为0,即被唤醒 */ public static void main(String[] args) { final ThreadPoolExecutor countDown
阅读全文
posted @ 2021-01-21 15:14
学如逆水行舟,不进则退
posted @ 2021-01-21 15:14
posted @ 2021-01-18 16:10
posted @ 2021-01-08 09:21