![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ThreadPoolExecutor
Mr_ZhangAdd
这个作者很懒,什么都没留下…
展开
-
ThreadPoolExecutor讲解
public ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> work..原创 2020-08-14 15:33:11 · 262 阅读 · 0 评论 -
java线程池ThreadPoolExecutor的使用
最近的项目突然有个需要多线程处理的一个需求,大概的场景就是: 业务A:人员1提交一个申请【在数据库中保存一条 未处理任务提醒-针对管理员1】——管理员1审批【在数据库中保存一条 审批结果-针对人员1】 业务B:人员2提交一个申请【在数据库中保存一条 未处理任务提醒-针对管理员2】——管理员2审批【在数据库中保存一条 审批结果-针对人员2】 .....等等 刚开始要使用线程池我很疑惑,这压根...原创 2019-12-30 18:59:21 · 462 阅读 · 0 评论