A Short and Sweet (and Deep) Brain Dump -
About Unsafe and CompareAndSwap (and NonBlockingHashMap).
A reader asked me: where is the volatile-like orderings guaranteed in NBHM?
- CAS - Compare-And-Swap instruction (or on IBM Power chips: Load-Linked / Store-Conditional). The unit of Atomic Update on all modern CPUs, required for any sort of multi-cpu programming.
- Unsafe - Java-level access to raw memory. In old-school spea