Tagged articles
3 articles
Page 1 of 1
MaGe Linux Operations
MaGe Linux Operations
Jun 30, 2022 · Fundamentals

How x86 and ARM Achieve Atomic Operations: LOCK Prefix and Exclusive Access

This article explains which instruction sets support atomic operations, detailing the principles behind x86’s LOCK prefix and ARM’s exclusive load/store mechanisms, illustrating how single‑processor and SMP systems handle atomicity, and showing Linux kernel implementations for atomic increment and compare‑and‑swap.

ARMInstruction Setatomic operations
0 likes · 11 min read
How x86 and ARM Achieve Atomic Operations: LOCK Prefix and Exclusive Access
Java Interview Crash Guide
Java Interview Crash Guide
Aug 1, 2021 · Fundamentals

How Does Java’s volatile Keyword Ensure Visibility and Ordering?

This article explains the two core properties of Java's volatile keyword—visibility and ordering—detailing how lock prefixes, memory barriers, and happens‑before relationships provide memory consistency, and compares volatile's implementation with synchronized blocks and CAS operations.

Happens-beforeMemory Modeljava
0 likes · 14 min read
How Does Java’s volatile Keyword Ensure Visibility and Ordering?
Selected Java Interview Questions
Selected Java Interview Questions
Jul 31, 2021 · Fundamentals

Understanding Java volatile, Memory Semantics, and the lock Prefix

This article explains the two core properties of Java's volatile keyword—visibility and ordering—how they are implemented via lock prefixes and memory barriers, compares volatile with synchronized and CAS, and details the underlying CPU cache‑coherency mechanisms such as MESI, store buffers, and invalidate queues.

Happens-beforeMESIMemory Model
0 likes · 13 min read
Understanding Java volatile, Memory Semantics, and the lock Prefix