public class ThreadTest extends Thread{
    
    int value;
    public ThreadTest(String name, ThreadGroup group){
	super(group,name);
	value = 0;
    }

    public void run(){
	while (true){
	    try {
		sleep(1000);
	    } catch (Exception e) {
		System.out.println(e);
	    }
	    value++;
	    System.out.println(getName() + " value = "+value);
	}
    }
    public boolean waitSec(int sec){
	try {
	    sleep(1000*sec);
	} catch (Exception e){
	    System.out.println(e);
	}
	return true;
    }


}
