Pausing main thread in simple console app with infinite loop

  • Thread starter Thread starter Paul Wistrand
  • Start date Start date
P

Paul Wistrand

I'm hoping that someone can quickly tell me of way to make my concole app
pause for a set duration before contining in an infinite loop (e.g. solution
to 100% cpu problem).

Thanks
 
Paul Wistrand said:
I'm hoping that someone can quickly tell me of way to make my concole app
pause for a set duration before contining in an infinite loop (e.g. solution
to 100% cpu problem).

I presume this works in a console app also

System.Thread.Thread.Sleep(100)
 
Back
Top