Virtual threads and File IO

Robert Engels robaho at
Fri May 31 19:38:24 UTC 2024


An interesting question came up on the Go support channels. One of the principle engineers stated that for local file IO, the Go routine (similar to virtual thread) won’t release the carrier thread.

Is this the same with Java virtual threads? Yes, local IO is typically fast - but it is still order of magnitudes slower than memory computations - which the virtual thread could be doing while waiting for the IO request to be serviced.


More information about the loom-dev mailing list