java – Thread. Yield () is still a cross platform minefield?
•
Java
I can find the answers of old references and so, say thread The behavior of yield() varies from platform to platform This answer indicates that this is because no behavior is actually specified
For modern versions of Java, thread Does the yield () behavior vary from platform to platform?
edit
I have read the document I understand what it means I'm asking about actual behavior
Solution
From Java 8 API (latest non beta version so far):
It means:
>Yes, still platform dependent > Yes, heuristics
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码