Re:On Java/JVM: Loom and Thread Fairness
by topspin on Friday June 03, 2022 @02:06PM
(#31611709)
Thinking about this further, a pragmatic enhancement to Thread::yield might look like this:
The method could be intrinsic to the compiler+runtime to provide runtime optimization (loop unrolling, tuning, etc.) of the 2nd - 4th cases. This would neatly avoid the need to:
... or similar.
[ Parent
| on HN ]
There are no comments on this comment yet.