469,609 Members | 1,177 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

Any Connection between ProcessThread and Thread?

Is there anyway to connect a ProcessThread and a Thread object?

When a debug event is notified, I receive a thread ID. I would like to get
the name of this thread, but ProcessThread (which is what it is an ID for)
does not have a name property. Thread objects do have a name property, but
no ID property. Is there any connection, or is there a way to link one to
the other?

TIA

Charles
[He's here with his questions again, I hear you cry]
Nov 20 '05 #1
2 5726

Is there anyway to connect a ProcessThread and a Thread object?

When a debug event is notified, I receive a thread ID. I would like to get
the name of this thread, but ProcessThread (which is what it is an ID for)
does not have a name property. Thread objects do have a name property, but
no ID property. Is there any connection, or is there a way to link one to
the other?

TIA

Charles
[He's here with his questions again, I hear you cry]


Have you find any answer for this question I am also interested in it

Thanks
User submitted from AEWNET (http://www.aewnet.com/)
Nov 21 '05 #2
"Note An operating-system ThreadId has no fixed relationship to a managed
thread, because an unmanaged host can control the relationship between
managed and unmanaged threads. Specifically, a sophisticated host can use
the CLR Hosting API to schedule many managed threads against the same
operating system thread, or to move a managed thread between different
operating system threads."

As I understand it, the ProcessThread class refers to an operating system
thread while the Thread class refers to a managed thread.

--
Jonathan Allen
"dotnethasyou" <dotnethasyou@aew_nospam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

Is there anyway to connect a ProcessThread and a Thread object?

When a debug event is notified, I receive a thread ID. I would like to
get
the name of this thread, but ProcessThread (which is what it is an ID
for)
does not have a name property. Thread objects do have a name property,
but
no ID property. Is there any connection, or is there a way to link one to
the other?

TIA

Charles
[He's here with his questions again, I hear you cry]


Have you find any answer for this question I am also interested in it

Thanks
User submitted from AEWNET (http://www.aewnet.com/)

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

26 posts views Thread by Rajeev Tipnis | last post: by
29 posts views Thread by Bryce K. Nielsen | last post: by
1 post views Thread by Steph | last post: by
1 post views Thread by lesani | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.