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()
{
for (int i = 1; i < 150; i++)
{
Thread reqThread = new Thread(new ParameterizedThreadStart(Test));
reqThread.Start(i);
}
}
Public void Test ( object i)
{
Try{
SetProxy
Connect
Send
Response
}
catch
{
Test(i)
}
}
Guest UserPosted Aug 11, 2014, 11:45 PM
I would suggest you can look at Task library of .Net framework which does thread management internally.
XIII XIIIPosted Aug 11, 2014, 2:49 PM
but in fact i load several milions username for check
because of this i must use 150 or more threads
Guest UserPosted Aug 11, 2014, 11:20 AM
XIII XIIIPosted Aug 11, 2014, 10:12 AM
ScreenShot
http://up.yahoo98.org/uploads/140776634579711.jpg
Guest UserPosted Aug 11, 2014, 5:39 AM
and i didn't understand
"this theard it isn't much to manage in vb6 "
XIII XIIIPosted Aug 11, 2014, 4:50 AM
this theard it isn't much to manage in vb6 :D
Guest UserPosted Aug 10, 2014, 10:13 PM
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