I've run a few programs with main loops that will go forever until the user exits, but these have always run asynchronously and take up 100% of a CPU. I'm writing a console app and would like to implement a scheduler that uses standard libraries in Windows.
This seems to work upon initial testing, but is this a reliable way to do it?