Java Multithreading, Concurrency, and Parallelism — Part 19
Understanding the misty Unsafe
In the last part, we have understood what CAS is and how it is implemented in the JDK library using
Unsafe class. In this article, we will understand more about Unsafe and what it is capable of.
The name of the class Unsafe comes from the fact that it deals with. The
sun.misc.Unsafe is really meant to be a…