thread pool
文章平均质量分 81
buzhidaolvtu
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
java线程池的使用
java线程池 使用说明:参照java api doc https://docs.oracle.com/javase/8/docs/api/ java.util.concurrent.ThreadPoolExecutor Core and maximum pool sizes On-demand construction Creating new threads Ke原创 2016-04-04 12:45:17 · 1483 阅读 · 0 评论 -
NIO and BIO的点滴区别
前提条件:服务器资源有限,即可以有效利用的线程数量是有限的。 以socket为例,假设条件,线程数量:1个,请求数量:50个,单个请求处理时间:15ms,网络传输时间:3ms,且50个请求同时到达服务器。 1.在BIO模式下,当从socket中读取数据时,需要等待时间waittime(accept+read:after accepting,client sends data and then原创 2016-04-05 11:22:19 · 352 阅读 · 0 评论 -
java.util.concurrent之ForkJoin
1.关于ForkJoin的基础知识理解: http://tutorials.jenkov.com/java-util-concurrent/java-fork-and-join-forkjoinpool.html 2.个人理解: public class Main { public static void main(String[] args) throws Int原创 2016-12-22 13:44:06 · 574 阅读 · 0 评论 -
JAVA schedule pool 理解
java schedule implement 如下例: public static void main(String[] args) { ScheduledThreadPoolExecutor pool = new ScheduledThreadPoolExecutor(1); //task1 pool.schedule(()->{ Syste原创 2017-01-17 11:38:07 · 2448 阅读 · 0 评论
分享