public class MyThread extends Thread
{
public void run()
{
while (running)
{ System.out.println("Start ");
try { sleep(100); }
catch (InterruptedException e) { }
}
}
public static void main(String args[])
{ Thread t = new MyThread();
t.start();
}
}