on-internet
← Community

Does Sleep(0) lets the core to execute other core's thread that is ready to run?

Stack Overflow ·

I'm having confusion with understanding Sleep(0) function in WinAPI. And I want to clarify it comparing with 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 have understood, 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" SwitchToThread Sleep(0) : "A value o

Comments

Sign in or sign up to comment and upvote.

No comments yet.