Tag

Thread States

1 views collected around this technical thread.

JD Tech Talk
JD Tech Talk
Mar 14, 2025 · Backend Development

Analysis of Java Thread States, Flame Graphs, and Performance Optimizations

The article examines Java thread states—WAITING and TIMED_WAITING—through monitoring screenshots, explains their definitions, trigger conditions, and recovery mechanisms, analyzes real‑world code involving concurrent tasks, and presents flame‑graph based performance optimizations for backend services.

Flame GraphJavaPerformance Profiling
0 likes · 10 min read
Analysis of Java Thread States, Flame Graphs, and Performance Optimizations
JD Cloud Developers
JD Cloud Developers
Mar 14, 2025 · Backend Development

Why Are Your Java Threads Stuck? Decoding WAITING and TIMED_WAITING States

This article explains Java thread run states, analyzes why threads appear in WAITING or TIMED_WAITING during concurrent tasks, shows flame‑graph diagnostics, and offers concrete code‑level optimizations to reduce CPU pressure and improve overall backend performance.

Flame GraphJavaThread States
0 likes · 7 min read
Why Are Your Java Threads Stuck? Decoding WAITING and TIMED_WAITING States
Cognitive Technology Team
Cognitive Technology Team
Apr 30, 2022 · Fundamentals

Java Thread States and How to Query Them

This article explains Java’s six thread states—NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, and TERMINATED—provides detailed descriptions, shows how to inspect thread states using jstack and online tools, and includes example thread dumps for practical analysis.

JavaThread Statesconcurrency
0 likes · 6 min read
Java Thread States and How to Query Them
Youzan Coder
Youzan Coder
Jul 8, 2021 · Backend Development

Deep Dive into Java Thread States and Synchronized Lock Implementation

The article thoroughly explains Java thread states and how the synchronized keyword is implemented, detailing the mapping to OS thread states, the object header’s Mark Word, biased, lightweight and heavyweight locking, CAS‑based state transitions, bytecode monitor instructions, lock upgrades, and optimal usage scenarios.

JVM internalsJavaThread States
0 likes · 39 min read
Deep Dive into Java Thread States and Synchronized Lock Implementation
Selected Java Interview Questions
Selected Java Interview Questions
Nov 7, 2019 · Fundamentals

Basic Java Multithreading Interview Questions and Answers

This article presents essential Java multithreading interview questions covering thread creation methods, thread lifecycle states, synchronization differences, monitor mechanisms, deadlock definition, and strategies to avoid deadlocks, providing concise explanations for each concept.

JavaMultithreadingSynchronization
0 likes · 7 min read
Basic Java Multithreading Interview Questions and Answers
Java Captain
Java Captain
Sep 14, 2018 · Fundamentals

Java Thread States: Overview of the Six Lifecycle States

This article explains Java's six thread states—NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, and TERMINATED—detailing their meanings, transitions, related waiting and synchronization queues, and comparing key thread-control methods such as sleep, yield, join, wait, and notify.

JavaMultithreadingThread States
0 likes · 9 min read
Java Thread States: Overview of the Six Lifecycle States