Hi,
I have a general question about for example a continuous while loop.
If we have a while(true) loop that will keep going for 24 hours without any
Thread.Sleep(), where the processor will be completely busy all the time.
Is this a good or bad practise, or is it okay to do that or should such work
have a Thread.Sleep(), every for example 5 minutes or so for any unknown reasons to me?
while(true)
{
//will work for 24 hours and put constant pressure on the CPU
}