Virtual threads and File IO

robert engels robaho at icloud.com
Fri May 31 23:22:15 UTC 2024


I looked into the code. Seems Java is the same. I looked into it - and seems for many workloads async file IO can improve efficiency by 80%. 

> On May 31, 2024, at 5:45 PM, Robert Engels <robaho at me.com> wrote:
> 
> Hi,
> 
> 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.
> 
> R


More information about the loom-dev mailing list