Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 21:24
superselector23-Sep-13 21:24 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot23-Sep-13 21:28
harold aptroot23-Sep-13 21:28 
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 22:31
superselector23-Sep-13 22:31 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot23-Sep-13 22:33
harold aptroot23-Sep-13 22:33 
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 22:39
superselector23-Sep-13 22:39 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot23-Sep-13 23:15
harold aptroot23-Sep-13 23:15 
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 23:39
superselector23-Sep-13 23:39 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot23-Sep-13 23:59
harold aptroot23-Sep-13 23:59 
That wouldn't help. The problem is this:
superselector wrote:
wmithread.Start();
wmithread.Join();
That's like calling that ping operation without a thread, except this way resources are wasted as well. Or to put it differently, it's like hiring a team to play a game of monopoly, in order to do it faster. That doesn't work. If everyone takes turns anyway, you might as well do it by yourself.
You need an array of threads. Fill the array, start them all, then, and only then, join them all.

Besides, what's with the WMI stuff? Do you need something that the Ping class[^] can't do?
GeneralRe: how to use thread in for loop in c# Pin
superselector24-Sep-13 0:50
superselector24-Sep-13 0:50 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot24-Sep-13 0:54
harold aptroot24-Sep-13 0:54 
GeneralRe: how to use thread in for loop in c# Pin
superselector24-Sep-13 1:17
superselector24-Sep-13 1:17 
GeneralRe: how to use thread in for loop in c# Pin
superselector24-Sep-13 1:50
superselector24-Sep-13 1:50 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot24-Sep-13 4:33
harold aptroot24-Sep-13 4:33 
AnswerRe: how to use thread in for loop in c# Pin
Abhinav S19-Sep-13 23:15
Abhinav S19-Sep-13 23:15 
AnswerRe: how to use thread in for loop in c# Pin
Simon_Whale19-Sep-13 23:55
Simon_Whale19-Sep-13 23:55 
GeneralRe: how to use thread in for loop in c# Pin
superselector22-Sep-13 19:29
superselector22-Sep-13 19:29 
Questionasp.net enterprise application Pin
Member 882441719-Sep-13 8:26
Member 882441719-Sep-13 8:26 
AnswerRe: asp.net enterprise application Pin
Dave Kreskowiak19-Sep-13 13:22
mveDave Kreskowiak19-Sep-13 13:22 
GeneralRe: asp.net enterprise application Pin
Member 882441721-Sep-13 8:30
Member 882441721-Sep-13 8:30 
GeneralRe: asp.net enterprise application Pin
Dave Kreskowiak21-Sep-13 12:10
mveDave Kreskowiak21-Sep-13 12:10 
QuestionOPOS driver Pin
kropek19-Sep-13 2:02
kropek19-Sep-13 2:02 
AnswerRe: OPOS driver Pin
kropek19-Sep-13 2:02
kropek19-Sep-13 2:02 
AnswerRe: OPOS driver Pin
OriginalGriff19-Sep-13 3:46
mveOriginalGriff19-Sep-13 3:46 
QuestionAccessing properties of one property of a class, directly Pin
H.Goli19-Sep-13 1:15
H.Goli19-Sep-13 1:15 
AnswerRe: Accessing properties of one property of a class, directly Pin
Eddy Vluggen19-Sep-13 2:59
professionalEddy Vluggen19-Sep-13 2:59 

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.