Why my program harasses my CPU?

Hi,
I've finished with roulette program and all works as expected but CPU just runs like crazy, as if I would lounch a nuclear missile LOL...

there is nothing strange with the code, only some complex math is used, but however CPU goes loud even is program is idle waiting for command.

Did anyone experience such problems so far?
any explanation? thank you!

~codekiddy
You probably are executing a "wait" function using a unlimited while loop. If you are, use instead a sleep function.
Ok, I found it.
I've installed visual studio 11 beta today and run a code in it... that's why CPU was so loud, and when I lounch a prorgam it self in windows it's quiet as allways until now :D

Thank you Destroyer for your willing to help! much appreciated!

Topic archived. No new replies allowed.