摘要:
package threadtest;/** * 事实上,Runnable类称作Task更加确切 * 真正的线程是执行单位,应该是Thread或Executor */public class TestThread extends Thread { private static int id = 1; @Override public void run() { System.out.println(this + " id: " + id++); }}package threadtest;import java.util.concurrent.Execut... 阅读全文