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."
In questa pagina del sito puoi guardare il video online Comparing Java Reentrant Locks vs. Non-Reentrant Locks in Object-Oriented Frameworks. della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Douglas Schmidt 15 maggio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 497 volte e gli è piaciuto 3 spettatori. Buona visione!