标签:cache service executor style color try pool div read
ExecutorService executor = Executors.newCachedThreadPool(); for(int i=0;i<threadNum;i++){ String[] tempOrderIds = copyOrderIds(i, orderThresholdNum,orderNum,orderIds); executor.execute(()->{ try { doSomething(tempOrdersIds); } catch (Exception ex) { ex.printStackTrace(); } }); }
标签:cache service executor style color try pool div read
原文地址:https://www.cnblogs.com/mengjianzhou/p/9149492.html