多线程之(Executor)一



package multiThread;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
public class Demon1 {
    public static void main(String[] args) {
        Executor executor = Executors.newFixedThreadPool(10);
          
        executor.execute(new Runnable() {
            @Override
            public void run() {
                  
                System.out.println("task over");
            }
              
        });
    }
}


多线程之(Executor)一,布布扣,bubuko.com

多线程之(Executor)一

上一篇:自定义classloader加载Spring 文件


下一篇:Python 自动补齐(CentOS,RedHat,windows)