例子:
ExecutorService es = Executors.newCachedThreadPool(); try { for (int i = 0; i < 20; i++) { Runnable syncRunnable = new Runnable() { @Override public void run() { log.info(Thread.currentThread().getName()); try { Thread.sleep(2000
赞
踩
例子:
ExecutorService es = Executors.newCachedThreadPool(); try { for (int i = 0; i < 20; i++) { Runnable syncRunnable = new Runnable() { @Override public void run() { log.info(Thread.currentThread().getName()); try { Thread.sleep(2000
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。