public class T extends Thread {
public static void main(String []args) {
for (int i = 0; i < 10; i++) {
T t = new T();
t.run();
}
}
public void run() {
while (true) {
System.out.println(System.currentTimeMillis());
try {
Thread.sleep(1000);
}
catch (InterruptedException e) {}
}
}
}