08 2013 档案
摘要:转载:http://blog.sina.com.cn/s/blog_6151984a0100krj8.htmlExecutorService 建立多线程的步骤:1。定义线程类class Handler implements Runnable{}2。建立ExecutorService线程池ExecutorService executorService= Executors.newCachedThreadPool();或者int cpuNums = Runtime.getRuntime().availableProcessors();//获取当前系统的CPU 数目ExecutorServiceex
阅读全文

浙公网安备 33010602011771号