Xiaokun's Architecture Exploration Notes
Author

Xiaokun's Architecture Exploration Notes

10 years of backend architecture design | AI engineering infrastructure, storage architecture design, and performance optimization | Former senior developer at NetEase, Douyu, Inke, etc.

61
Articles
0
Likes
193
Views
0
Comments
Recent Articles

Latest from Xiaokun's Architecture Exploration Notes

61 recent articles
Xiaokun's Architecture Exploration Notes
Xiaokun's Architecture Exploration Notes
Jan 23, 2020 · Fundamentals

Understanding the Java Memory Model: Data Sharing, Race Conditions, and Visibility Solutions

This article explains the Java Memory Model, covering how it validates reads, the distinction between shared and exclusive memory areas, data‑race scenarios with example code, visibility challenges, and the JMM‑based solutions such as volatile, synchronized, and memory barriers to prevent harmful reordering.

Memory ModelReorderingdata race
0 likes · 8 min read
Understanding the Java Memory Model: Data Sharing, Race Conditions, and Visibility Solutions