线程演示:
1 package thread; 2 3 /** 4 * 兔子的线程 5 * @author superdrew 6 */ 7 public class RabbitThread extends Thread{ 8 public void run() { 9 setName("兔子线程"); 10 while(true){ 11 System.out.println("兔子领先了....加油!!!!"+getName()+" "+getPriority()); 12 } 13 } 14 15 }