r/programming • • Apr 06 '22

JEP 425: Virtual Threads (Preview)

https://openjdk.java.net/jeps/425
92 Upvotes

71 comments sorted by

View all comments

Show parent comments

1

u/FarkCookies Apr 07 '22

I am wondering if it still can be called non-preemtive if the runtime does it for you behind the scenes by making all IO calls async (and yielding) ? Like I am doing data = file.read() and it starts reading but also yields to the next green thread.