Does Sleep(0) let the core execute another core's thread that is ready to run?
I'm having trouble understanding the Sleep(0) function in WinAPI. And I want to clarify it comparing with the SwitchToThread function. There was a related question, but it was too old and not verified. Also, my question is not about difference between them, so it is different question. As far as I understand, there is a thread queue per core (assuming from the statement "thread that is ready to run on the current processor") and SwitchToThread: causes the calling thread to yield execution to another thread that is ready to run on the CURRENT processor Reference SwitchToThread Sleep(0): a value
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.