创建线程有两种方式: 一种是: public class Test{ public static void main(String [] args){ Runner1 ru = new Runner1(); Thread th = new Thread(ru); th.start(); } } class Runner1 implements Runnable{ public void run(){ for(int i = 0 ; i < 10 ; i++){ System.out.println(i); } } } 这种直接是实现 Runnable 的, 创建线程稍显麻烦了些! 另外一种就是: public class Test{ Thread th = new Runnable(); th.start(); } class Runnable1 extends Thread{ public void run(){ for(int i = 0 ; i<10 ; i++){ System.out.println(this.getName()+",No:"+i); } } } 这种看起来更加的方便 好写了!