谈谈线程池中,线程的增长/回收策略
一、序public static ExecutorService newThreadPool() { return new ThreadPoolExecutor( 30, 60, 60L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue());}我们今天就来借这个问题,聊聊线程池中维护的线程,它增长和回收的策略是什么样的?二、线程池的
一、序public static ExecutorService newThreadPool() { return new ThreadPoolExecutor( 30, 60, 60L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue());}我们今天就来借这个问题,聊聊线程池中维护的线程,它增长和回收的策略是什么样的?二、线程池的