Controlling the VirtualThread.scheduler

Alan Bateman Alan.Bateman at oracle.com
Tue Jun 7 12:49:53 UTC 2022


On 07/06/2022 13:01, Peter Veentjer wrote:
> Hi Ron,
>
> Thanks for your reply.
>
> If I access the constructor using reflection and add the EventloopThread as
> a scheduler (it's already a scheduler), the VirtualThread should remain
> contained within the EventloopThread?
>
> My primary goal is to experiment with the combination of Loom and the
> thread per core design.
>
One thing that would be useful is if you could send a summary of your 
findings and experiences when you are done. For a long time, the early 
access build exposed a way to set an alternative scheduler (as an 
Executor). It was interesting for experimentation but arguably an 
attractive nuisance too. As Ron said, it's something we do want to get 
back to and I think would be useful to hear about the issues you ran into.

-Alan


More information about the loom-dev mailing list