package com.inmind.thread_pool10; public class MyRunnable implements Runnable{ @Override public void run() { System.out.println(Thread.currentThread().getName()+"执行了任务"); try { Thread.sleep(100000); } catch (InterruptedException e) { throw new RuntimeException(e); } } }