C
Charles
I asked a question related to this a little while ago, and thought that I'd
got my answer, but it has come back to bite me again.
I currently use a System.Threading.Timer to generate a tick every 10
seconds. At each tick, I execute some code that will take a maximum of 5
seconds to complete. Most of the time, each subsequent tick occurs at
exactly 10 seconds after the previous one, but occasionally there can be as
much as 20 or 30 seconds between ticks.
It was explained, in the previous thread, that the Threading timer relies on
WM_TIMER messages, which are low down on the priority list. If the system
gets a bit busy then these message seem to come further apart, so my tick
interval extends.
What I need is a reliable way to generate a 10 second tick, that still works
when the system gets a bit busy. I'm running this on Windows Server 2003 R2
x64, if that makes any difference.
Does anyone have any ideas?
TIA
Charles
got my answer, but it has come back to bite me again.
I currently use a System.Threading.Timer to generate a tick every 10
seconds. At each tick, I execute some code that will take a maximum of 5
seconds to complete. Most of the time, each subsequent tick occurs at
exactly 10 seconds after the previous one, but occasionally there can be as
much as 20 or 30 seconds between ticks.
It was explained, in the previous thread, that the Threading timer relies on
WM_TIMER messages, which are low down on the priority list. If the system
gets a bit busy then these message seem to come further apart, so my tick
interval extends.
What I need is a reliable way to generate a 10 second tick, that still works
when the system gets a bit busy. I'm running this on Windows Server 2003 R2
x64, if that makes any difference.
Does anyone have any ideas?
TIA
Charles