[External] : Re: Project Loom VirtualThreads hang
Ron Pressler
ron.pressler at oracle.com
Thu Jan 5 22:52:00 UTC 2023
> On 5 Jan 2023, at 19:02, Sam Pullara <spullara at gmail.com> wrote:
>
> So the place where this comes up is when you do a short computation but use tons of threads to do it. Like, for example, I have a brute force embedding search library that uses parallel streams to do the query. If that takes a few seconds (or even hundreds of ms) I still want other threads doing more mundane, fast work to get CPU time rather than every other computation on the system being blocked.
Virtual threads would behave the same way as platform threads in this case. First, there is no time-sharing among parallel stream tasks anyway today, but there is time-sharing between parallel streams and other threads, be they platform or virtual.
More information about the loom-dev
mailing list