Managed Thread to Win32 Thread

  • Thread starter Thread starter niclester
  • Start date Start date
N

niclester

Hello,

I am trying to obtain a safe correlation between a managed thread and a
WIn32 thread. I need to be able to gather run time statistics on
particular running threads using WMI or System.Diagnostics classes.

Apparently in dot net 2, the AppDomain.GetCurrentThreadId method is
obsolete..

Would be great if anybody had some thoughts on this..

Cheers
 
Hello (e-mail address removed),

The correlation is not so clear between managed and unmanaged threads, because
there are some system threads and additional layer between managed and OS
thread for abstraction

Read there http://blogs.msdn.com/yunjin/archive/2005/08/25/456355.aspx
Hello,
I am trying to obtain a safe correlation between a managed thread and
a WIn32 thread. I need to be able to gather run time statistics on
particular running threads using WMI or System.Diagnostics classes.

Apparently in dot net 2, the AppDomain.GetCurrentThreadId method is
obsolete..

Would be great if anybody had some thoughts on this..

Cheers
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Back
Top