package multiThread; import java.util.concurrent.Executor; import java.util.concurrent.Executors; public class Demon1 { public static void main(String[] args) { Executor executor = Executors.newFixedThreadPool(10); executor.execute(new Runnable() { @Override public void run() { System.out.println("task over"); } }); } }
多线程之(Executor)一,布布扣,bubuko.com
原文:http://chenjizhan.blog.51cto.com/2577729/1395693