扩展ThreadPoolExecutor的一种办法
在JAVA的世界里,如果想并行的执行一些任务,可以使用ThreadPoolExecutor。
大部分情况下直接使用ThreadPoolExecutor就可以满足要求了,但是在某些场景下,比如瞬时大流量的,为了提高响应和吞吐量,最好还是扩展一下ThreadPoolExecutor。
全宇宙的JAVA IT人士应该都知道ThreadPoolExecutor的执行流程:
core线程还能
转载
2017-10-23 19:32:04 ·
232 阅读 ·
0 评论