public synchronized void pause() { statut = Thread.State.BLOCKED; try { while(statut == Thread.State.BLOCKED) wait(); } catch(InterruptedException e) {} } public synchronized void arreter() { statut = Thread.State.TERMINATED; notify(); } public synchronized void relancer() { statut = Thread.State.RUNNABLE; notify(); }