Tagged articles
Java Memory Model
11 articles · Page 1 of 1
This article explains how Java's final keyword ensures cross-thread visibility of final fields through the JMM's freeze action at constructor end, provided the this reference does not escape during construction, demonstrating with a code example that shows a race condition when this escapes and the correct behavior when final fields are properly frozen.
ConcurrencyJMMJava
0 likes · 7 min read

This article explains the three fundamental problems of Java concurrency—visibility, atomicity, and ordering—describes how the Java Memory Model and happens‑before rules address them, and details the low‑level implementations and optimizations of volatile, synchronized, lock upgrading, and the removal of biased locking in JDK 15‑17.
ConcurrencyJVMJava Memory Model
0 likes · 18 min read

This article provides a thorough, image‑rich overview of Java concurrency, covering the differences between concurrency and parallelism, thread lifecycle states, various ways to create threads, thread‑pool design and workflow, the Java Memory Model, and essential JUC utilities, all illustrated with code snippets and diagrams.
ConcurrencyJUCJava
0 likes · 8 min read

This article explains the core concepts of the Java Virtual Machine and the Java Memory Model, detailing JVM components, how bytecode is executed, and the eight happens‑before rules that govern visibility, ordering, and atomicity in multithreaded Java programs.
ConcurrencyHotSpotJMM
0 likes · 8 min read

This article explains how Java source files are compiled into bytecode, details the JVM's class loading lifecycle, describes the hierarchical class loader delegation model, and breaks down the runtime data areas—including stack, heap, and metaspace—while offering practical tuning tips to avoid common OOM issues.
Class LoadingJava Memory ModelOOM
0 likes · 13 min read

The article explains how the Java Memory Model addresses concurrency challenges by defining visibility, ordering, and atomicity guarantees through mechanisms such as volatile, synchronized, cache coherence, memory barriers, CAS operations, and happens‑before relationships, enabling correct and portable multi‑threaded programming.
CASConcurrent ProgrammingHappens-Before
0 likes · 25 min read

This comprehensive guide walks through the Java Virtual Machine's runtime data areas, memory model, heap layout, garbage‑collection mechanisms, HotSpot internals, performance tuning flags, and class‑loading process, providing developers with the essential knowledge to optimize Java applications.
Class LoadingGarbage CollectionJVM
0 likes · 29 min read

This article explains the internal structure of the Java Virtual Machine, covering how class files are loaded, the constant‑pool and attribute formats, stack‑frame execution, JIT compilation, escape analysis, and Java memory‑model concepts such as volatile and thread‑safety.
ClassLoaderEscape AnalysisJIT
0 likes · 15 min read


ITPUBApr 29, 2017 · Backend Development
This article compiles and clarifies forty common Java multithreading interview questions, covering thread creation, synchronization mechanisms, thread pools, memory model, and practical debugging techniques to help developers deepen their understanding and prepare for technical interviews.
InterviewJava Memory ModelMultithreading
0 likes · 30 min read

This article presents a comprehensive collection of 40 Java multithreading interview questions, covering the purpose of multithreading, thread creation methods, differences between start() and run(), Runnable vs Callable, synchronization utilities, memory model, locks, thread pools, and best practices for concurrent programming.
Java Memory ModelThreadThreadPool
0 likes · 29 min read


21CTOAug 11, 2015 · Backend Development
This article compiles 50 of the most frequently asked Java multithreading and concurrency interview questions, covering core concepts, thread creation, synchronization mechanisms, memory model, common pitfalls, and best practices, providing concise explanations to help both novice and experienced developers prepare effectively.
InterviewJava Memory ModelThread
0 likes · 34 min read
