class Demo implements Runnable
{
private int num=100;
public void run()
{
while(num>0)
System.out.println(Thread.currentThread().getName()+"..."+num--);
}
}
public class main {
public static void main(String[] args) {
Demo D=new Demo();
Thread t1=new Thread(D);
Thread t2=new Thread(D);
t1.start();
t2.start();
}
}