I've read a bunch of articles on the different .NET timers and still don't have a good understanding how the System.Threading.Timer class works. My concern is whether I'm creating a bunch of timer threads in the thread pool. I have this concern
because one article said something about System.Threading.Timer using a thread pool thread to WAIT on the timer. I'm hoping that each System.Threading.Timer class I create doesn't create a thread pool timer thread waiting on my timer interval.
I assume not. Which is why I would like to know how it actually works.
For instance, let's say I create 50 System.Threading.Timer objects with a 5 second interval. What happens? Is there some interop call into unmanaged code which creates some timer resources and somehow signals some managed code when a timer has
elapsed at which point the managed code queues a work item to the thread pool? So in my example, at roughly the same point in time .NET would queue 50 work items to the thread pool?
View Complete Post