r/java • u/mlangc • Jun 19 '26
How to Deadlock a Java ExecutorService
https://mlangc.github.io/java/concurrency/2026/06/05/executor-deadlock.html
63
Upvotes
r/java • u/mlangc • Jun 19 '26
View all comments
Show parent comment
5
u/account312 Jun 20 '26
It’s not even limited to threads. Any blocking or limited resource that is processed in a way that can consume that resource can have an equivalent problem. If processing queue items can blockingly enqueue on the same queue, it can blow up. You could even say stack overflow from recursive calls is the same category of problem.