java多线程---------java.util.concurrent并发包----------ThreadPoolExecutor
2021-07-14 07:05
标签:reject 并发包 run 并发 executor pool rdo style 线程 一、三个构造方法 ThreadPoolExecutor(int corePoolSize,int MaxmumPoolSize,long KeepAliveTime,,TimeUnit unit,BolokingQueue ThreadPoolExecutor(int corePoolSize,int MaxmumPoolSize,long KeepAliveTime,,TimeUnit unit,BolokingQueue ThreadPoolExecutor(int corePoolSize,int MaxmumPoolSize,long KeepAliveTime,,TimeUnit unit,BolokingQueue ThreadPoolExecutor(int corePoolSize,int MaxmumPoolSize,long KeepAliveTime,,TimeUnit unit,BolokingQueue 标注 1、CorePoolSize 线程池的基本大小 2、MaxmunPoolSize 线程池最大数量 3、KeepAliveTime 线程活动保持时间 4、BlokingQueue 任务队列 (ArrayBlokingQueue LinkedBlokingQueue synchronousQueue PriorityBlokingQueue) 5、RejectExceptionHandler 饱和策略 (AbortPlicy CallerRunsPolicy DiscardOldestPolicy DiscardPolicy) 6、ThreadFactory java多线程---------java.util.concurrent并发包----------ThreadPoolExecutor 标签:reject 并发包 run 并发 executor pool rdo style 线程 原文地址:https://www.cnblogs.com/hanxue112253/p/9539621.htmlThreadPoolExecutor线程池
文章标题:java多线程---------java.util.concurrent并发包----------ThreadPoolExecutor
文章链接:http://soscw.com/essay/104993.html