S
sune42
For my ASP.NET website , I have a winform application that runs once a
day
doing various household tasks. As these tasks are quite DB/CPU
intensive I
use
Thread.Sleep(XX);
System.Windows.Forms.Application.DoEvents();
To slow it down. Why? I don't want this application to affect the
performance
of my ASP.NET website or other application that might be running
.. Also I don't care how long it takes.
But I suspect that the above is perhaps not the best way of slowing it
down,
so I wonder if anyone got any better ideas?
Andy
day
doing various household tasks. As these tasks are quite DB/CPU
intensive I
use
Thread.Sleep(XX);
System.Windows.Forms.Application.DoEvents();
To slow it down. Why? I don't want this application to affect the
performance
of my ASP.NET website or other application that might be running
.. Also I don't care how long it takes.
But I suspect that the above is perhaps not the best way of slowing it
down,
so I wonder if anyone got any better ideas?
Andy