ReentrantLock : une analyse technique approfondie

ReentrantLock ReentrantLock permet d'acquérir un verrou via la méthode lock() et de le libérer avec unlock(). Il est impératif d'utiliser la même instance de ReentrantLock pour le verrouillage. Ce mécanisme est basé sur le framework de synchronisation Java AbstractQueuedSynchronizer (AQS). AQS maintient un état de synchronisation à l'aide d'une ...

Publié le 11 juin à 17h44