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.)<p>I haven't been able to figure out how the "unmount" of a virtual thread works. As stated in this article:<p>> 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.<p>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.<p>[0] <a href="https://openjdk.org/jeps/425" rel="nofollow">https://openjdk.org/jeps/425</a>