随笔分类 - Java实用
摘要:package com.haier.controller.newuser; import com.haier.commons.entity.Response; import com.haier.commons.utils.AliyunOSSUtil; import org.apache.commons.io.FileUtils; import org.apache.commons.lang3...
阅读全文
摘要:Executor框架是指java 5中引入的一系列并发库中与executor相关的一些功能类,其中包括线程池,Executor,Executors,ExecutorService,CompletionService,Future,Callable等。他们的关系为: 并发编程的一种编程方式是把任务拆分
阅读全文
摘要:/** * * @author hc * @version 1.0 * * @param */ public interface ThreadPool{ //执行一个job void execute(Job job); //关闭线程 void shutdown(); //增加工作者线程 void addWorkers(int num); //减少工作者线程 v...
阅读全文