Don’t let your thread sleep unless it really has to

Hello! I -not so rarely- see a call to the Sleep API for polling purposes. Personally, I don’t recommend Sleep for polling. It is not only waste of computing resources but also wrong usage ( or usage without knowing the possible consequences ) can cause unexpected behavior. Let’s start visiting the MSDN article about Sleep…

0