I have a console application that I would like to keep open all of the time while still listening in to events. I have tested Thread.Sleep(Timeout.Infinite); an
is computationally intensive, since the thread never stops, wheareas
Thread.Sleep(Timeout.Infinite);
actually gets the thread to sleep with help of OS native schedulers. And then the thread actually stops, so I suppose it's less computationally demanding.