alt.hn

7/2/2026 at 12:09:35 PM

How to deadlock a Java ExecutorService

https://mlangc.github.io/java/concurrency/2026/06/05/executor-deadlock.html

by 0x54MUR41

7/3/2026 at 12:36:47 AM

Well written, but I do not understand why this is news. A thread will deadlock if asked to wait on itself, and that generalizes to any fixed size group of threads. That seems like it should be obvious to everyone.

The standard guidance of avoiding join() without a timeout, only running leaf-like/bounded work on TPEs, considering common executor instances to be best-effort when it comes to important work, and of using (formally or informally) structured concurrency and purpose-specific executors with carefully managed lifetimes, watchdog timers, and ovservability is important. Given their skill at writing, I’d love for the author to tackle those in their next post; this one’s subject seems trivially-well-known.

by zbentley

7/2/2026 at 9:15:27 PM

ok what blog package is this? This is beautiful

by exabrial

7/2/2026 at 9:17:17 PM

It looks like the base Jekyll theme.

by tolerance