单项选择题
请阅读下面程序
public class ThreadTest{
public static void main(String args[])throws Ex-
ception{
int i=0;
Hello t=new Hello();
;
while(true){
System.Out.println("Good Morning"+i++):
if(i= =2&&t.isAlive()){
System.out.println("Main waiting for Hel-
lo!");
t.join();//等待t运行结束
}
if(i= =5)break;}
}
}
class Hello extends Thread{
int l;
public void run(){
while(true)(
System.Out.println("Hell0"+i++);
if(i= =5)break;)))
为使该程序正确执行,下画线处的语句应是( )。
A.t.sleep()
B.t.yield()
C.t.interrupt()
D.t.start()