1、ThreadPoolExecutor类的全参数构造方法: /*** Creates a new {@code ThreadPoolExecutor} with the given initial* parameters.** @param corePoolSize the number of threads to keep in the pool, even* if they
线程的创建与线程池及线程池工具类 1.线程的创建方式 1.1继承Thread类重写run方法 public class Test {public static void main(String[] args) {Thread thread = new MyThread();thread.setName("mythread001");thread.sta