Steve,
When you create a timer, it doesn't actually do anything. The
threadpool is used only when the timer is calling back
When you say the thread pool is exhausted, do you mean all the threads
are currently running or they are all in deadlock? Like any other task that
gets put into the thread pool when all available threads are running, the
task is queued, and it waits for an open thread before it is processed.
If the timer is due to fire, and all of the threads are deadlocked, then
you have bigger issues.
What are you trying to acheive here?
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"steve" <st***@discussions.microsoft.com> wrote in message
news:C7**********************************@microsof t.com...
Since System.Threading.Timer uses the threadpool to do its stuff what
happens
when
(a) You try to create a timer and the thread pool is *exhausted*
(b) The timer is due to fire AND all threads in the threadpool are blocked
(deadlocked maybe)?
As a followup qn to this.. (please excuse my ignorance here) Is there one
threadpool per process or one threadpool for the *virtual machine* (ie
runtime environment, sorry haven't got a diploma in .net three letter
acronyms ; )
Cheers,
-- Steve