public static void main(String[] args) {
		String threadName = Thread.currentThread().getName();
		System.out.println(threadName+" start!");
		CustomThread1 t1 = new CustomThread1();
		
		//t2时实现了接口线程，所以需要new Thread来运行
		CustomThread2 t2 = new CustomThread2(t1);
		Thread t22 = new Thread(t2);
		
		try{
			t1.start();
			Thread.sleep(2000);
			t22.start();
		}catch(Exception e){
			System.out.println("Exception from  main");
		}
		  System.out.println(threadName + " end!");  
	}