Click here to Skip to main content
15,919,749 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hardware Simulator Pin
Sabry190529-Jan-07 1:37
Sabry190529-Jan-07 1:37 
QuestionDisplaying image in Gridview Pin
fahiemulleh28-Jan-07 7:39
fahiemulleh28-Jan-07 7:39 
QuestionDo you know NET 2.0 documentation tools? Pin
cebyrjoe228-Jan-07 7:35
cebyrjoe228-Jan-07 7:35 
AnswerRe: Do you know NET 2.0 documentation tools? Pin
Stefan Troschuetz28-Jan-07 8:12
Stefan Troschuetz28-Jan-07 8:12 
QuestionThread Id and Thread name Pin
MinaFawzi28-Jan-07 5:43
MinaFawzi28-Jan-07 5:43 
AnswerRe: Thread Id and Thread name Pin
Luc Pattyn28-Jan-07 6:11
sitebuilderLuc Pattyn28-Jan-07 6:11 
GeneralRe: Thread Id and Thread name Pin
MinaFawzi28-Jan-07 6:19
MinaFawzi28-Jan-07 6:19 
GeneralRe: Thread Id and Thread name Pin
Luc Pattyn28-Jan-07 7:00
sitebuilderLuc Pattyn28-Jan-07 7:00 
Some ideas:

1)
Inside your app you could attach a name to your thread by using a hash table;
that could help keeping track of things, but it only lives inside your app.

External tools for watching processes, threads and other resources (such as TaskInfo)
would not know about it of course.

2)
When your app contains logging, you could add a thread identification, based on ID
or attached name, or whatever (always starting with Thread.CurrentThread).
If your threading situation gets complex, you really should do this.

3)
whatever you come up with, some threads will not follow your scheme, e.g.
Threadpool threads, Backgroundworkers, etc.
But I avoid these, since you dont have full control over them (set priority, kill, ...).

4)
I tend to use my own thread class that holds a thread and a descriptive text, but also a
mechanism to report progress and a means to cancel/kill/abort
(I started doing this before NET 2.0, so before Backgroundworkers were available).

Smile | :)


Luc Pattyn

GeneralRe: Thread Id and Thread name Pin
MinaFawzi28-Jan-07 7:14
MinaFawzi28-Jan-07 7:14 
GeneralRe: Thread Id and Thread name Pin
Luc Pattyn28-Jan-07 9:55
sitebuilderLuc Pattyn28-Jan-07 9:55 
AnswerRe: Thread Id and Thread name Pin
Parwej Ahamad28-Jan-07 6:28
professionalParwej Ahamad28-Jan-07 6:28 
GeneralRe: Thread Id and Thread name Pin
MinaFawzi28-Jan-07 7:10
MinaFawzi28-Jan-07 7:10 
GeneralRe: Thread Id and Thread name Pin
Parwej Ahamad28-Jan-07 7:13
professionalParwej Ahamad28-Jan-07 7:13 
GeneralRe: Thread Id and Thread name Pin
MinaFawzi28-Jan-07 7:17
MinaFawzi28-Jan-07 7:17 
QuestionRetrieve Data from a tablecell using Webbrowser? Pin
TuanNH8528-Jan-07 5:15
TuanNH8528-Jan-07 5:15 
AnswerRe: Retrieve Data from a tablecell using Webbrowser? Pin
Parwej Ahamad28-Jan-07 6:56
professionalParwej Ahamad28-Jan-07 6:56 
GeneralRe: Retrieve Data from a tablecell using Webbrowser? Pin
TuanNH8528-Jan-07 18:56
TuanNH8528-Jan-07 18:56 
QuestionStore DXF files (Autocad files) in SQLSERVER And be able zoom Pin
Hossein Malekizadeh28-Jan-07 3:53
Hossein Malekizadeh28-Jan-07 3:53 
Questionnotepad.exe Pin
zeltera28-Jan-07 3:15
zeltera28-Jan-07 3:15 
AnswerRe: notepad.exe Pin
engsrini28-Jan-07 4:22
engsrini28-Jan-07 4:22 
AnswerRe: notepad.exe Pin
Thomas Stockwell28-Jan-07 4:45
professionalThomas Stockwell28-Jan-07 4:45 
AnswerRe: notepad.exe Pin
zeltera28-Jan-07 5:00
zeltera28-Jan-07 5:00 
GeneralRe: notepad.exe Pin
Luc Pattyn28-Jan-07 6:15
sitebuilderLuc Pattyn28-Jan-07 6:15 
GeneralRe: notepad.exe Pin
zeltera28-Jan-07 7:25
zeltera28-Jan-07 7:25 
GeneralRe: notepad.exe Pin
bobsugar22228-Jan-07 22:26
bobsugar22228-Jan-07 22:26 

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.