Applying Reentrant & Non-Reentrant Java Locks to Object-Oriented Frameworks & Applications (Part 3)

preview_player
Показать описание
This video walks through a case study that shows the difference between a reentrant lock (e.g., Java ReentrantLock) and a non-reentrant Lock (e.g., a spin-lock implemented using Java VarHandle features) when applied in an object-oriented framework that allows callbacks where the framework holds a lock protecting internal framework state. Part 3 of this case study examines the NonReentrantSpinLock class, which emulates a "compare and swap"-style spin-lock with non-recursive semantics using the Java VarHandle class.

Рекомендации по теме
visit shbcf.ru