Tagged articles
5 articles
Page 1 of 1
Java Architect Handbook
Java Architect Handbook
Apr 30, 2026 · Fundamentals

What Is a Daemon Thread and How Does It Differ From a Normal Thread?

The article explains that a daemon (background) thread in Java supports user threads but does not prevent JVM shutdown; when all non‑daemon threads finish, the JVM exits regardless of daemon threads, covering definitions, usage scenarios, creation methods, pitfalls, detailed comparisons, and typical interview questions.

DaemonThreadJVMThreadLifecycle
0 likes · 10 min read
What Is a Daemon Thread and How Does It Differ From a Normal Thread?
Data Thinking Notes
Data Thinking Notes
Dec 14, 2022 · Big Data

Why Spark Jobs Keep Running After You Kill Them: Daemon Threads and Driver Behavior

This article investigates why Spark tasks that appear killed in the Web UI continue running on the driver, analyzes the role of daemon versus non‑daemon threads and SparkContext shutdown mechanisms, reproduces the issue with sample code, and provides practical solutions such as using daemon threads or checking SparkContext status.

DaemonThreadSparkbigdata
0 likes · 8 min read
Why Spark Jobs Keep Running After You Kill Them: Daemon Threads and Driver Behavior
Java Captain
Java Captain
Jul 24, 2017 · Fundamentals

Lesser‑Known Java Thread Techniques and Usage

This article explores five advanced Java thread topics—including naming, priority, ThreadLocal storage, daemon vs. user threads, and processor affinity—providing code examples, practical tips, and guidance for both beginners and seasoned developers.

DaemonThreadProcessorAffinityThreadLocal
0 likes · 12 min read
Lesser‑Known Java Thread Techniques and Usage