Précédent Remonter Suivant


Exclusion
Les verrous sont réentrants c'est a dire qu'un Thread exécutant peut reprendre le verrou sur un objet.
synchronised (unObjet)
{
....
 synchronised (unObjet)
   {
    ...
   }
....
}
Dans la pratique on évitera ce type de programme.

- 37 -

  Alain Bouju Thread


Précédent Remonter Suivant