A New Early Access Build

Nawazish Khan md.nawazish.khan at gmail.com
Fri Jan 3 06:46:15 UTC 2020

Why would, or what could be a good use case to schedule virtual threads on
pool of virtual threads?

On Thu, Jan 2, 2020 at 11:36 PM Alan Bateman <Alan.Bateman at oracle.com>

> On 01/01/2020 12:24, Dávid Karnok wrote:
> > Before the API change in Loom, I was using
> > FiberScope.background().schedule(executor, work) where executor was
> > any Executor without extra constraints as I understood it.
> The prototypes to date haven't supported this. You may have got lucky
> but you would probably have tripped over a number of asserts if running
> with -esa.
> So yes, it's a hazard in the current prototype. If you are using a
> custom scheduler, the threads (or "carrier threads" as we've been
> calling them) must be kernel/heavyweight threads. There are several
> issues that will need to be worked through before it will be possible to
> multiplex virtual threads over a pool of virtual threads over a pool of
> ...  Hopefully this won't prevent you from testing other things.
> -Alan

More information about the loom-dev mailing list