Tag

MESI

0 views collected around this technical thread.

New Oriental Technology
New Oriental Technology
May 25, 2023 · Fundamentals

Deep Dive into Java volatile: CPU Cache Architecture, MESI Protocol, JMM and Happens‑Before

This article thoroughly explains the low‑level implementation of Java's volatile keyword by analysing CPU multi‑level cache design, the MESI cache‑coherency protocol, the Java Memory Model, memory barriers, the happens‑before principle, and the impact on singleton patterns and synchronized blocks.

CPU cacheConcurrencyHappens-Before
0 likes · 36 min read
Deep Dive into Java volatile: CPU Cache Architecture, MESI Protocol, JMM and Happens‑Before
Selected Java Interview Questions
Selected Java Interview Questions
Jul 27, 2022 · Fundamentals

Understanding Java's volatile Keyword: CPU Cache, Memory Visibility, and the MESI Protocol

This article explains how the volatile keyword ensures visibility in Java multithreaded programs by examining CPU cache architecture, cache‑coherency mechanisms such as the MESI protocol, and the low‑level assembly effects of volatile writes on modern x86 processors.

CPU cacheConcurrencyJava
0 likes · 12 min read
Understanding Java's volatile Keyword: CPU Cache, Memory Visibility, and the MESI Protocol
Top Architect
Top Architect
Oct 4, 2021 · Fundamentals

Understanding Cache: Concepts, Mechanisms, and Consistency

This article provides a comprehensive overview of cache memory, explaining why caches are needed, their placement strategies, operation principles, replacement policies, write handling methods, and coherence protocols such as MESI, offering essential knowledge for computer architecture and system design.

CacheComputer ArchitectureMESI
0 likes · 12 min read
Understanding Cache: Concepts, Mechanisms, and Consistency
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.

ConcurrencyHappens-BeforeJava
0 likes · 13 min read
Understanding Java volatile, Memory Semantics, and the lock Prefix
TAL Education Technology
TAL Education Technology
May 13, 2021 · Backend Development

Understanding Java Concurrency: Volatile, Synchronized, JMM, and MESI

This article provides a comprehensive tutorial on Java concurrency, covering the usage and implementation principles of the volatile and synchronized keywords, the Java Memory Model, the MESI cache protocol, common visibility and reordering issues, and practical code examples for designing efficient multithreaded solutions.

ConcurrencyJMMJava
0 likes · 17 min read
Understanding Java Concurrency: Volatile, Synchronized, JMM, and MESI
Xiaokun's Architecture Exploration Notes
Xiaokun's Architecture Exploration Notes
Jan 9, 2020 · Fundamentals

Why CPU Caches Matter: Levels, Coherence, and Memory Barriers

CPU caches, organized into L1‑L3 levels, accelerate memory access by exploiting locality, but their independent copies can cause data inconsistency across cores; coherence protocols such as MESI and memory‑barrier instructions ensure that reads and writes remain ordered and visible across all processors.

CPUCacheMESI
0 likes · 10 min read
Why CPU Caches Matter: Levels, Coherence, and Memory Barriers