"stopping" misbehaving fibers

Alan Bateman Alan.Bateman at oracle.com
Mon May 11 06:55:54 UTC 2020


On 10/05/2020 23:31, Alex Otenko wrote:
> Ok. Is there a plan to support thread priorities?
>
Virtual threads doesn't have a meaningful thread priority in the current 
prototype, it's something for the custom scheduler bucket. More real 
usages with custom schedulers, and workloads where it is important, 
would be needed to get some sense on far to go on this. It might be that 
the custom scheduler just controls the priorities of the carrier threads 
that it uses and/or queues tasks based on the priority of the virtual 
thread. Going deeper then one could envisage priority inversion 
scenarios where a custom scheduler wants insight into the locks and wait 
queues, something that could be very intrusive and scary to expose.

-Alan


More information about the loom-dev mailing list