Reliable timer in a console application | I am aware that in [.NET](http://en.wikipedia.org/wiki/.NET_Framework) there are three timer types (see *[Comparing the Timer Classes in the .NET Framework Class Library](http://msdn.microsoft.com/en-us/magazine/cc164015.aspx)*). I have chosen a threaded timer as the other types can drift if the main thread is busy, and I need this to be reliable.


The way this timer works in the control of the timer is put on another thread so it can always tick along with the work begin completed on the parent thread when it is not busy.


The issue with this timer in a console application is that while the timer is ticking along on another thread the main thread is not doing anything to the application closes.


I tried adding a `while true` loop, but then the main thread is too busy when the timer does go off.