MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/txqvx1/jep_425_virtual_threads_preview/i3raxrr/
r/programming • u/sureshg • Apr 06 '22
71 comments sorted by
View all comments
Show parent comments
1
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.
data =
file.read
()
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.