package com.inmind.threadpool10; //线程任务!!! public class Task implements Runnable{ @Override public void run() { System.out.println(Thread.currentThread().getName()+"正在执行任务"); try { Thread.sleep(10000); } catch (InterruptedException e) { e.printStackTrace(); } } }