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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top