Home All Groups Group Topic Archive Search About

System.Threading.Timer vs System.Timers.Timer

Author
13 Jan 2006 3:42 PM
RK
I have created C# windows service to Peek Message Queues in periodic
intervals and update the database. In the above scenario which Timer
class suitable??

thanks in advance
--RK

Author
13 Jan 2006 3:57 PM
Naveen
The System.Threading.Timer is lightweight timer where as the
System.Timers.Timer is server timer. The Timers.Timer can scale better
because they have built for it. My suggestion is if your application is
a server then you should probably use the System.Timers.Timer.
Author
13 Jan 2006 4:01 PM
Tim Wilson
The MSDN article at the link below might help give you a better idea of what
each Timer is all about.
http://msdn.microsoft.com/msdnmag/issues/04/02/TimersinNET/

--
Tim Wilson
..NET Compact Framework MVP

Show quote
"RK" <r_adhakris***@yahoo.com> wrote in message
news:1137166947.388976.77420@g43g2000cwa.googlegroups.com...
> I have created C# windows service to Peek Message Queues in periodic
> intervals and update the database. In the above scenario which Timer
> class suitable??
>
> thanks in advance
> --RK
>

AddThis Social Bookmark Button