Tagged articles

lock prefix

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
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.

JavaMemory Modelconcurrency
0 likes · 13 min read
Understanding Java volatile, Memory Semantics, and the lock Prefix