public class DaemonSimple extends Thread {
public DaemonSimple() {
setDaemon(true); // doit etre avant start()
start();
}
public void run() {
while(true) {
try { sleep(100);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
System.out.println(this);
}
} ...
Alain Bouju Thread