Slowing down an application
Hi,
I have an application which generates 20000 combinations of numbers for a lottery game. If I let it iterate and generate the numbers for me it kills my CPU and peaks it to 100% (uses everything my computer has)
If I put in each iteration Thread.Sleep(1) it slows it down too much.
I am using the BackgroundWorker to execute this because it allows me the possibilty to have my application normally running while generating the combinations in the background.
Any ideas on how to slow down the application, but not too much like with Thread.Sleep(1)?
btw. I saw some posts in which someone advise was to deal with it in the Task Manager, but I cannot
tell that to my client.
and ideas? please help.

