Managed Thread to Win32 Thread

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
 
M

Michael Nemtsev

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top