Précédent Remonter Suivant


Thread non actif
Un thread devient non actif quand :
public void run() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            // Si interruption
        }
    }
}
Mise en sommeil du thread pendant une seconde.

- 16 -

  Alain Bouju Thread


Précédent Remonter Suivant