If you want to figure out which Thread is for what, one good way is to use WinDBG and use the commands there to enumerate the threads. The !threads command will give you all the managed threads (after you've loaded the sos.dll extension). You can run ~* kb to dump the call stack of all the threads
Regards, Sriram ---------------------------------------------------------------------------- - I blog at http://www.dotnetjunkies.com/weblog/sriram ---------------------------------------------------------------------------- > -----Original Message----- > From: Unmoderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of > Hewitt, Simon C. (Contractor) > Sent: 18 October 2004 17:23 > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] Theads.... > > Does anyone know the relationship between > System.Threading.Thread and System.Diagnostics.ProcessThread? > > I am trying to reconcile the number of threads shown in > TaskManager for a process with the threads shown in VS > Debugger - ie which are mine and which belong to the > infrastructure/OS. > > I can iterate all the threads running in my process (using > System.Diagnostics.Process.GetCurrentProcess().Threads) but I > can't translate from ProcessThread to Thread so that I can > find out whether it is a TheadPool thread or not. > > For some reason, a Thread won't let you set its Name property > if it comes from the ThreadPool which would have helped! > (Surely it could reset the name back to null once the thread > had finished?) > > Cheers > Simon > > =================================== > This list is hosted by DevelopMentor. http://www.develop.com > Some .NET courses you may be interested in: > > Essential .NET: building applications and components with > CSharp August 30 - September 3, in Los Angeles > http://www.develop.com/courses/edotnet > > View archives and manage your subscription(s) at > http://discuss.develop.com > =================================== This list is hosted by DevelopMentorŪ http://www.develop.com Some .NET courses you may be interested in: Essential .NET: building applications and components with CSharp August 30 - September 3, in Los Angeles http://www.develop.com/courses/edotnet View archives and manage your subscription(s) at http://discuss.develop.com