Virtual Threads: New Foundations for High-Scale Java Applications
This is a great writeup, and reignites my interest in Java. (I've long considered "Java Concurrency in Practice" to be the _best_ Java book ever written.)I haven't been able to figure out how the "unmount" of a virtual thread works. As stated in this article:> Nearly all blocking points in the JDK have been adapted so that when encountering a blocking operation on a virtual thread, the virtual thread is unmounted from its carrier instead of blocking.How would I implement this logic in my own libraries? The underlying JEP 425[0] doesn't seem to list any explicit APIs for that, but it does give other details not in the OP writeup.[0] https://openjdk.org/jeps/425