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-beforeJavaMemory Model
0 likes · 14 min read
How Does Java’s volatile Keyword Ensure Visibility and Ordering?