On Thu, 18 May 2006 16:49:05 +0100, Simon Harvey
<no******@hotmail.com> wrote:
Hi Guys,
Thanks for all your comments.
I did think about using timers initially, but I was concerned that they
worked by constantly polling thereby being inefficient.
Is it definately the case that using a timer 24/7 wont be overly
burdensome? I just thought there might be some other way that was more
efficient?
I could quite believe that there isnt - I just really wanted to make
sure before I do anything
Many thanks
Simon
Neither the timer nor alternative of putting a worker thread into a
sleep loop uses any significant system resources. Neither one uses
CPU time between wake-ups or timeouts. There are two questions. One
is elegance of design and the timer is the proper way to go. The
second is how best to get the job done simply and quickly and my
worker thread did that for me faster than trying to figure out how to
make a timer function properly inside a service.