Cooperative vs preemtive scheduling of virtual theads

Alan Bateman Alan.Bateman at oracle.com
Mon Jun 8 15:12:36 UTC 2020


On 08/06/2020 15:52, Ron Pressler wrote:
> You should not make any assumptions about where scheduling points are. Thread.yield
> is not currently specified, but we *may* specify it so that it guarantees returning
> to the scheduler.
>
Just to add a bit more to this. The current implementation will return 
to the scheduler when the thread is not pinned. If pinned then it just 
continues.

-Alan


More information about the loom-dev mailing list