Précédent Remonter Suivant


Exclusion méthode

Une méthode peut aussi être synchronized
public synchronized void NomMethode {
        ... 
    }
Cela permet d'avoir un verrou sur l'objet lors de l'appel de la méthode.

- 35 -

  Alain Bouju Thread


Précédent Remonter Suivant