System.Timers.Timer is a wrapper for the NT Waitable Timer.
System.Threading.Timer is a CLR threadpool based timer which fires its events on threadpool thread. I just looked in reflector to find out the implementation details but unfortunately the crucial method AddTimerNative is marked as internalcall.
I'll have to have a dig in the ROTOR code and see.
Regards
Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<O7*************@TK2MSFTNGP10.phx.gbl>
How many System.Threading.Timer timers can os "reasonably" handle? What is
the cost in mem? I think this is a wraper for win32 TimerQueueTimer (not
sure), but wonder what general implementation is. A queue of objects that
one thread keeps checking to see it time expired, etc. TIA
--
William Stacey, MVP
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.760 / Virus Database: 509 - Release Date: 10/09/2004
[microsoft.public.dotnet.languages.csharp]