By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,550 Members | 908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,550 IT Pros & Developers. It's quick & easy.

Any Connection between ProcessThread and Thread?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a

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

P: n/a
"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.