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

C#

 
GeneralRe: Expression too complex Pin
PIEBALDconsult4-Jun-08 7:34
mvePIEBALDconsult4-Jun-08 7:34 
GeneralRe: Expression too complex Pin
leppie4-Jun-08 9:05
leppie4-Jun-08 9:05 
GeneralRe: Expression too complex Pin
joeyan3-Jun-08 22:27
joeyan3-Jun-08 22:27 
GeneralRe: Expression too complex Pin
PIEBALDconsult4-Jun-08 7:33
mvePIEBALDconsult4-Jun-08 7:33 
QuestionDynamaic GridView Issue Pin
GroCareer3-Jun-08 16:46
GroCareer3-Jun-08 16:46 
AnswerRe: Dynamaic GridView Issue Pin
Ashfield3-Jun-08 21:09
Ashfield3-Jun-08 21:09 
Questionthread ID Pin
George_George3-Jun-08 15:40
George_George3-Jun-08 15:40 
AnswerRe: thread ID Pin
Luc Pattyn3-Jun-08 16:46
sitebuilderLuc Pattyn3-Jun-08 16:46 
Hi George,

1. no
2. no

there is no link between managed threads and kernel threads.
managed threads are logical things, kernel threads are physical things.
even if it seems there is a one-to-one correspondence, .NET does not promise that;
in fact they claim multiple managed threads could be executed by a smaller number of
kernel thread.

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.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Voting for dummies? No thanks. Dead | X|


GeneralRe: thread ID Pin
George_George3-Jun-08 17:02
George_George3-Jun-08 17:02 
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 
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 

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.