Wednesday, June 02, 2004

7.2) Thread blocking: "public class TSleep extends Thread{
public static void main(String argv[]){
TSleep t = new TSleep();
t.start();
}
public void run(){
try{
while(true){
this.sleep(1000);
System.out.println('looping while');
}
}catch(InterruptedException ie){}
}
}

With the"