Any Connection between ProcessThread and Thread?

C

Charles Law

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]
 
D

dotnethasyou

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/)
 
J

Jonathan Allen

"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 said:
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/)
 

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