News for hackers. Stuff that matters.
Re:Async file IO in Java is not truly async [Resource, Tech ... by adra on Monday January 08, 2024 @06:24PM (#38919936)
The JVM with virtual threads will do userspace task scheduling to take jobs on and off active OS threads. As long as Java knows he e to safely suspend the running up action, like socket.read(), the JVM could use a read selector on an off thread and something like epoll() to resume the socket and it's calling task when the blocking call is available and an OS thread capable of resuming it.

There are no comments on this comment yet.