Change virtual Thread.yield to use external submit

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 20
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b27

      Thread.yield is currently implemented as "lazy submit" and is unfair when virtual threads are waiting in submission queues (started or unmarked by platform threads.

      The issue tracks changing the implementation to check the local queue. If empty, use external submit, other use a regular submit. The effect will be improve fairness and release the carrier as users of Thread.yield will expect. The downside is that virtual threads may bounce between carriers.

            Assignee:
            Alan Bateman
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: