Tagged articles

Thread Lifecycle

5 articles · Page 1 of 1
Architect Chen
Architect Chen
Aug 25, 2026 · Fundamentals

Java Thread States Explained: 6 States with Visual Diagrams

This article provides a comprehensive explanation of Java's six thread states—New, Runnable, Blocked, Waiting, Timed Waiting, and Terminated—with visual diagrams illustrating each state's transitions and typical triggers such as lock acquisition, wait/notify, and timeout mechanisms.

ConcurrencyJavaJava Interview
0 likes · 3 min read
Java Thread States Explained: 6 States with Visual Diagrams
Dabaoshi
Dabaoshi
Aug 13, 2026 · Fundamentals

Why Concurrency Is Hard: The Surprising Result of Two Threads Incrementing an int

The article explains why Java concurrency is difficult by showing that two threads each incrementing an int ten thousand times may not produce twenty thousand, then explores the motivations for multithreading, the differences between concurrency and parallelism, and the three core challenges of visibility, atomicity, and ordering.

AtomicityConcurrencyJava
0 likes · 23 min read
Why Concurrency Is Hard: The Surprising Result of Two Threads Incrementing an int
JavaEdge
JavaEdge
Oct 31, 2020 · Backend Development

Mastering Java Thread Lifecycle: From NEW to TERMINATED

This article explains Java thread fundamentals, covering thread creation, lifecycle states, priority levels, daemon threads, initialization methods, and common thread operations such as join, yield, sleep, and interrupt, with detailed code examples and diagrams.

Daemon ThreadJavaThread Lifecycle
0 likes · 13 min read
Mastering Java Thread Lifecycle: From NEW to TERMINATED