I use this code
bud it slow and use more cpu
so
i want faster way
but how i can do it?
my code
public void Start()
{
Code
for (int i = 1; i < 150; i++)
{
Thread reqThread = new Thread(new ParameterizedThreadStart(Test));
reqThread.Start(i);
}Code
}
Public void Test ( object i)
{
Try{ SetProxy
Connect
Send
Code
Response
}
catch
{
Test(i)
}
}
Guest UserRank #258 · 9.8K pointsPosted Aug 11, 2014, 7:45 PM EDT
I would suggest you can look at Task library of .Net framework which does thread management internally.
Guest UserRank #258 · 9.8K pointsPosted Aug 10, 2014, 6:13 PM EDT
you're creating 150 new threads? isn't it much to manage? i believe it'll be slow as you've .net framework threads + 150 threads that you've created?
may i know reason to spawn 150?
thnx
XIII XIII8 pointsPosted Aug 11, 2014, 12:50 AM EDT
this theard it isn't much to manage in vb6 :D
Guest UserRank #258 · 9.8K pointsPosted Aug 11, 2014, 1:39 AM EDT
and i didn't understand
"this theard it isn't much to manage in vb6 "
XIII XIII8 pointsPosted Aug 11, 2014, 6:12 AM EDT
ScreenShot
http://up.yahoo98.org/uploads/140776634579711.jpg
Guest UserRank #258 · 9.8K pointsPosted Aug 11, 2014, 7:20 AM EDT
XIII XIII8 pointsPosted Aug 11, 2014, 10:49 AM EDT
but in fact i load several milions username for check
because of this i must use 150 or more threads