This video shows the difference between a reentrant lock (e.g., Java ReentrantLock) and a non-reentrant lock (e.g., Java StampedLock) when applied in a framework that allows callbacks where the framework holds a lock protecting framework state. As you'll see when you run this program, the reentrant lock supports this use-case nicely, whereas the non-reentrant lock incurs "self-deadlock."
Sur cette page du site, vous pouvez voir la vidéo en ligne Comparing Java Reentrant Locks vs. Non-Reentrant Locks in Object-Oriented Frameworks. durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Douglas Schmidt 15 mai 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 497 fois et il a aimé 3 téléspectateurs. Bon visionnage!