- 浏览: 1590 次
- 性别:
- 来自: 北京
最新评论
文章列表
public class Test_ThreadPoolExecutor {
/**
* @param args
*/
public static void main(String[] args) {
Test_ThreadPoolExecutor tt = new Test_ThreadPoolExecutor();
tt.start();
}
public void start(){
final AtomicInteger atomicInteger = new AtomicInteger(1);
/*
* 定义一个线程 ...
package com.samples.thread;
import java.util.Date;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concur ...