|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
System.Threading.Timer vs System.Timers.TimerI 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 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. 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/ -- Show quoteTim Wilson ..NET Compact Framework MVP "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 > |
|||||||||||||||||||||||