码迷,mamicode.com
首页 >  
搜索关键字:threadpoolexecutor    ( 599个结果
image
import java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy;import com.nostra13.universalimageloader.core.DisplayImageOptions;import com.nostra...
分类:其他好文   时间:2016-01-18 09:09:19    阅读次数:144
线程阻塞
研究ThreadPoolExecutor.excute()源码会发现,它调用了BlockingQueue.offer()来实现多余任务的入队。BlockingQueue有两个方法:BlockingQueue.offer()和BlockingQueue.put(),前者在队列满时不阻塞,直接失败,.....
分类:编程语言   时间:2015-12-23 12:19:51    阅读次数:160
jdk中的ThreadPoolExecutor
java.util.concurrent类ThreadPoolExecutorjava.lang.Object继承者java.util.concurrent.AbstractExecutorService继承者java.util.concurrent.ThreadPoolExecutor所有已实现的...
分类:其他好文   时间:2015-12-16 12:35:52    阅读次数:199
ThreadPoolExecutor知识点详解
先贴基本实现代码:import java.util.concurrent.LinkedBlockingQueue;import java.util.concurrent.ThreadPoolExecutor;import java.util.concurrent.ThreadPoolExecutor...
分类:其他好文   时间:2015-12-10 18:54:47    阅读次数:1119
ThreadPoolExecutor参数详解
不多说,先看源码 1 /** 2 * Creates a new {@code ThreadPoolExecutor} with the given initial 3 * parameters. 4 * 5 * @param corePoolSize th...
分类:其他好文   时间:2015-12-07 02:12:21    阅读次数:386
ThreadPoolTaskExecutor
ThreadPoolTaskExecutor的配置在网上找了很多解释没找到,看了下ThreadPoolExecutor的配置,名字差不多,应该含义也差不多。只不过ThreadPoolTaskExecutor对ThreadPoolExecutor做了包装。 线程的配置文件:corePoolS...
分类:其他好文   时间:2015-12-05 00:28:19    阅读次数:252
线程池ThreadPoolExecutor使用简介(转)
一、简介线程池类为 java.util.concurrent.ThreadPoolExecutor,常用构造方法为:ThreadPoolExecutor(int corePoolSize, int maximumPoolSize,long keepAliveTime, TimeUnit unit,B...
分类:编程语言   时间:2015-11-05 06:31:35    阅读次数:256
java线程API学习 线程池ThreadPoolExecutor(转)
线程池ThreadPoolExecutor继承自ExecutorService。是jdk1.5加入的新特性,将提交执行的任务在内部线程池中的可用线程中执行。 构造函数ThreadPoolExecutor(int corePoolSize, ...
分类:编程语言   时间:2015-10-30 00:40:34    阅读次数:415
ThreadPoolExecutor详解
ThreadPoolExecutor详解ThreadPoolExecutor的完整构造方法的签名是:ThreadPoolExecutor(intcorePoolSize, intmaximumPoolSize, longkeepAliveTime, TimeUnitunit, BlockingQue...
分类:其他好文   时间:2015-10-20 22:43:32    阅读次数:270
线程池
创建一个线程数量最大为20的线程池private ThreadPoolExecutor tpe2 = (ThreadPoolExecutor) Executors.newFixedThreadPool(20);
分类:编程语言   时间:2015-09-19 19:31:38    阅读次数:129
599条   上一页 1 ... 48 49 50 51 52 ... 60 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!