Click here to Skip to main content
15,892,674 members
Home / Discussions / C#
   

C#

 
AnswerRe: contro with custom properties Pin
DigitalKing8-May-06 17:18
DigitalKing8-May-06 17:18 
GeneralRe: contro with custom properties Pin
Sasuko9-May-06 5:07
Sasuko9-May-06 5:07 
QuestionC#, CompactFramework and RAS Pin
martin_hughes8-May-06 10:31
martin_hughes8-May-06 10:31 
QuestionDetermine max column length info using SqlDataAdapter, XmlDataDocument classes in C# Pin
PrashantJ8-May-06 10:18
PrashantJ8-May-06 10:18 
QuestionIs this a bad way to multithread? Pin
Joshua Lunsford8-May-06 10:13
Joshua Lunsford8-May-06 10:13 
AnswerRe: Is this a bad way to multithread? Pin
stbaker8-May-06 10:38
stbaker8-May-06 10:38 
GeneralRe: Is this a bad way to multithread? Pin
Robert Rohde8-May-06 10:49
Robert Rohde8-May-06 10:49 
AnswerRe: Is this a bad way to multithread? Pin
Robert Rohde8-May-06 10:46
Robert Rohde8-May-06 10:46 
Depending on the number of threads you could consider using ThreadPool.
Also you should rethink the IsAlive loop. First of all it could consume much processor time so you should at least do:
foreach(Thread t in workerThread)
   while(t.IsAlive())
      Thread.Sleep(10);

Instead of waiting for all threads separately you could also use a counter which counts the started and terminated threads. Have a look at the Interlocked[^] class for a sample.
AnswerRe: Is this a bad way to multithread? Pin
stbaker8-May-06 11:18
stbaker8-May-06 11:18 
AnswerRe: Is this a bad way to multithread? Pin
Andy Brummer8-May-06 12:34
sitebuilderAndy Brummer8-May-06 12:34 
QuestionThreads and functions... Pin
Shy Agam8-May-06 10:09
Shy Agam8-May-06 10:09 
AnswerRe: Threads and functions... Pin
Robert Rohde8-May-06 10:36
Robert Rohde8-May-06 10:36 
GeneralRe: Threads and functions... Pin
Shy Agam8-May-06 11:54
Shy Agam8-May-06 11:54 
Question"The Server is not operational" when authenticating user to active directory Pin
krishna nimmalapudi8-May-06 9:55
krishna nimmalapudi8-May-06 9:55 
QuestionCursor and windows form Pin
indimu8-May-06 9:39
indimu8-May-06 9:39 
AnswerRe: Cursor and windows form Pin
Shy Agam8-May-06 23:38
Shy Agam8-May-06 23:38 
QuestionListbox Pin
JMichael24688-May-06 9:37
JMichael24688-May-06 9:37 
AnswerRe: Listbox Pin
NaNg152418-May-06 9:51
NaNg152418-May-06 9:51 
AnswerRe: Listbox Pin
microsoc8-May-06 16:31
microsoc8-May-06 16:31 
GeneralRe: Listbox Pin
JMichael24689-May-06 2:44
JMichael24689-May-06 2:44 
QuestionFew focused questions Pin
NaNg152418-May-06 9:37
NaNg152418-May-06 9:37 
AnswerRe: Few focused questions Pin
NaNg152418-May-06 9:40
NaNg152418-May-06 9:40 
GeneralRe: Few focused questions Pin
Stefan Troschuetz8-May-06 10:46
Stefan Troschuetz8-May-06 10:46 
AnswerRe: Few focused questions Pin
Stefan Troschuetz8-May-06 10:58
Stefan Troschuetz8-May-06 10:58 
AnswerRe: Few focused questions Pin
DigitalKing8-May-06 17:46
DigitalKing8-May-06 17: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.