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."
On this page of the site you can watch the video online Comparing Java Reentrant Locks vs. Non-Reentrant Locks in Object-Oriented Frameworks. with a duration of hours minute second in good quality, which was uploaded by the user Douglas Schmidt 15 May 2020, share the link with friends and acquaintances, this video has already been watched 497 times on youtube and it was liked by 3 viewers. Enjoy your viewing!