一种利用线程池进行for循环处理的思想

在for里面,若是执行一次for里面的内容所需时间“较长”(相对而言),不妨改用线程池的方式。java 以下测试:多线程 public class ExecutorTest2 { private static final int loopNum = 1*10; public static void main(String args[]) throws Interrupted
相关文章
相关标签/搜索