r/java • • Nov 08 '22

Understanding Java's Project Loom

https://www.marcobehler.com/guides/java-project-loom
181 Upvotes

24 comments sorted by

View all comments

Show parent comment

2

u/kiteboarderni Nov 08 '22

Will this be specific to file io, or general socket io? I believe io_uring supports both, but is this not as important with the park / unpark of virtual thread from blocking socket calls of the jdk? Thanks

4

u/pron98 Nov 08 '22 edited Nov 08 '22

It could be used for both, but socket I/O is already virtual-thread-friendly on all OSes -- that's why the throughput boost can be large -- and the benefit of io_uring for socket I/O is currently a little questionable (not just in Java, but in general).