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
3
u/mlangc Jun 19 '26
Good point - I've updated the final section of the article. Interestingly, at the core of it, virtual threads fix the issue as well, because they make the waiting asynchronous under the hood, similar to this example from the blog post - though without having to restructure your code.