java线程池使用

说明直接new 一个 Thread 很占用cpu,因此可使用线程池web ExecutorService aa = Executors.newCachedThreadPool(); aa.execute(()->{ try { Thread.sleep(200); } catch (InterruptedException e) { // TODO Auto-generate
相关文章
相关标签/搜索