多线程解决for循环效率问题

 在for里面,若是执行一次for里面的内容所需时间比较长,能够使用线程池来提升for循环的效率;java public class TreadFor { private static final int loopNum = 1*10; public static void main(String args[]) throws InterruptedException {
相关文章
相关标签/搜索