View Single Post
  #5 (permalink)  
Old 07-23-2008, 06:13 PM
=?Utf-8?B?Q2hyaXMgTWFyc2g=?=
 
Posts: n/a
Re: Timers - Which to choose?

sloan

Many thanks for the link - I'll follow up on it this evening.

Cheers!

--
Regards

Chris Marsh

"sloan" wrote:

> Comparing the Timer Classes in the .NET Framework Class Library
> http://msdn.microsoft.com/en-us/magazine/cc164015.aspx
>
> Perhaps this will help you pick one.
>
>
>
>
>
> "Chris Marsh" <ChrisMarsh@discussions.microsoft.com> wrote in message
> news:57611B58-88A1-46FD-8F2E-15B5AD173124@microsoft.com...
> > All
> >
> > I have a MonitorClient class, which will control a number of monitor
> > classes
> > implementing an IMonitor interface. These monitor classes will monitor
> > various different things on a server. Each monitor class will have a
> > differently timed cycle on which to perform its probing.
> >
> > My question is: which Timer class woudl it be better to use within the
> > monitor classes - System.Threading.Timer, or System.Timers.Timer? I've
> > read
> > up on both, but cannot really see which suits my requirements better. Both
> > seem to use a new worker thread from the CLR thread pool on which to raise
> > their events, so I cannot immediately see a benefit to using one or the
> > other
> > for my particular scenario.
> >
> > Any advice very much appreciated.
> >
> > Cheers!
> >
> > --
> > Regards
> >
> > Chris Marsh

>
>
>

Reply With Quote