线程池使用的场景和意义

java 线程池

java 提供了四种线程池 :

newCachedThreadPool

newFixedThreadPool

newScheduledThreadPool

newSingleThreadExecutor