![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码库
光哥_帅
技术就是知识,改变命运!!!
展开
-
【枚举与countDownLatch的应用】
1、前言: 来源周阳面试第二季 main public class CountDownLatchDemo { public static void main(String[] args) throws InterruptedException { CountDownLatch countDownLatch=new CountDownLatch(6); for (int i = 1; i <=6 ; i++) { new Thread((原创 2021-03-02 23:45:21 · 122 阅读 · 1 评论 -
【代码库】线程池
package com.atwangyi; import java.util.List; import java.util.concurrent.*; public class Main { /** * 测试: 提交15个执行时间需要3秒的任务,看线程池的状况 * * @param threadPoolExecutor 传入不同的线程池,看不同的结果 * @throws Exception */ public void testCommo原创 2021-01-15 09:14:29 · 92 阅读 · 0 评论