Click here to Skip to main content
15,914,416 members
Home / Discussions / C#
   

C#

 
GeneralRe: thread ID Pin
anujarya_20013-Jun-08 18:19
anujarya_20013-Jun-08 18:19 
GeneralRe: thread ID Pin
George_George3-Jun-08 18:22
George_George3-Jun-08 18:22 
GeneralRe: thread ID Pin
anujarya_20013-Jun-08 18:48
anujarya_20013-Jun-08 18:48 
GeneralRe: thread ID Pin
George_George3-Jun-08 18:50
George_George3-Jun-08 18:50 
GeneralRe: thread ID Pin
Luc Pattyn3-Jun-08 23:38
sitebuilderLuc Pattyn3-Jun-08 23:38 
GeneralRe: thread ID Pin
George_George3-Jun-08 23:49
George_George3-Jun-08 23:49 
GeneralRe: thread ID Pin
Luc Pattyn4-Jun-08 0:07
sitebuilderLuc Pattyn4-Jun-08 0:07 
GeneralRe: thread ID Pin
George_George4-Jun-08 0:44
George_George4-Jun-08 0:44 
Thanks Luc,


--------------------
As a consequence, there is simply NO WAY to identify your threads; not by name (Windows
does not know about thread names), and not easily by thread IDs, they are confusing
at the least.

What you can do is catch the managed thread ID when the thread gets created,
attach a thread name to it (using a Hashtable/Dictionary), then keep track of your
threads by asking them their ID, and look up the thread name you assigned earlier.
But that is a rather clumsy workaround for a lernel shortcoming.
--------------------

So, you think the same is the same in TaskManager and in the .Net App -- even if the ID are not the same? And you use name to link the relationship between them? Smile | :)


regards,
George
GeneralRe: thread ID Pin
Luc Pattyn4-Jun-08 0:52
sitebuilderLuc Pattyn4-Jun-08 0:52 
GeneralRe: thread ID Pin
George_George4-Jun-08 1:11
George_George4-Jun-08 1:11 
GeneralRe: thread ID Pin
Luc Pattyn4-Jun-08 1:47
sitebuilderLuc Pattyn4-Jun-08 1:47 
GeneralRe: thread ID Pin
George_George4-Jun-08 1:53
George_George4-Jun-08 1:53 
GeneralRe: thread ID Pin
Luc Pattyn4-Jun-08 2:04
sitebuilderLuc Pattyn4-Jun-08 2:04 
GeneralRe: thread ID Pin
George_George4-Jun-08 2:06
George_George4-Jun-08 2:06 
GeneralRe: thread ID Pin
George_George4-Jun-08 2:03
George_George4-Jun-08 2:03 
GeneralRe: thread ID Pin
Luc Pattyn4-Jun-08 2:07
sitebuilderLuc Pattyn4-Jun-08 2:07 
GeneralRe: thread ID Pin
George_George4-Jun-08 2:11
George_George4-Jun-08 2:11 
QuestionNeed help with a Microsoft Word Addin Pin
Shriniwasan Viswanathan3-Jun-08 14:03
Shriniwasan Viswanathan3-Jun-08 14:03 
QuestionBinding CSV to CheckBoxList Pin
stormcandi3-Jun-08 11:39
stormcandi3-Jun-08 11:39 
AnswerRe: Binding CSV to CheckBoxList Pin
leppie3-Jun-08 18:31
leppie3-Jun-08 18:31 
QuestionErrorprovider in combination with tabs Pin
wilberts3-Jun-08 11:38
wilberts3-Jun-08 11:38 
QuestionDisabled keyboard and mouse Pin
hendryck3-Jun-08 11:03
hendryck3-Jun-08 11:03 
AnswerRe: Disabled keyboard and mouse Pin
DaveyM693-Jun-08 11:56
professionalDaveyM693-Jun-08 11:56 
GeneralRe: Disabled keyboard and mouse Pin
anujarya_20013-Jun-08 18:46
anujarya_20013-Jun-08 18:46 
GeneralRe: Disabled keyboard and mouse Pin
Shree3-Jun-08 19:46
Shree3-Jun-08 19:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.