Hacker News new | ask | show | jobs
by Jtsummers 885 days ago
The adoption guide tells you not to switch to virtual threads just for their own sake. They're not meant as a straight replacement for OS threads.

https://docs.oracle.com/en/java/javase/21/core/virtual-threa...

1 comments

No mentions of deadlocks. Just this:

> Pinning does not make an application incorrect, but it might hinder its scalability.

The documentation is wrong.

Yes, it is. That’s because their discussion of pinning is incomplete: it needs to mention forward progress.
The workaround is to increase the carrier thread pool size.