Archives mensuelles : août 2019

Java 1.5+ : Lock API : an alternative to the synchronized keyword

Plan Synchronized keyword limitations Locking on an Object field : the premises of the lock API ReentrantLock : the basic lock ReentrantLock versus synchronized statement benchmark A scenario example where ReentrantLock can help us Synchronized keyword limitations The java.util.concurrent.locks package from … Continuer la lecture

Publié dans Non classé | Laisser un commentaire