in reply to Re^3: Forking Multiple Threads
in thread Forking Multiple Threads
I knew you wouldn't. Because you obviously don't know how.
Demonstrate for your fellow Monks,
I already did 500+ times.
Meanwhile a search for your threaded code contributions turns up one hit. And there's no code in that either.
how throwing 500 threads at this problem is justifiable and necessary.
Simple math. You have 2000 SaaS servers from which to retrieve data, that takes them 10 seconds to prepare and return.
Using 4 threads: 2000*10/4 = 5000 seconds = 1hr 23 minutes elapsed.
Using 100 threads: 2000*10/100 = 200 seconds = 3.3 minutes elapsed.
Using 500 threads: 2000*10/500 = 40 seconds elapsed.
You need another demo?
[ 0:35:30.57] c:\test>t-head-urls -THREADS=4 urls.list Processed 2040 urls Took 424.354000 with 4 threads c:\test>t-head-urls -THREADS=8 urls.list Processed 2040 urls Took 215.305000 with 8 threads c:\test>t-head-urls -THREADS=16 urls.list Processed 2040 urls Took 123.232000 with 16 threads c:\test>t-head-urls -THREADS=32 urls.list Processed 2040 urls Took 90.033000 with 32 threads c:\test>t-head-urls -THREADS=64 urls.list Processed 2040 urls Took 88.804000 with 64 threads
You see where that's headed?
So now it is (way past) your turn. Ante up if you can.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Forking Multiple Threads
by locked_user sundialsvc4 (Abbot) on Feb 09, 2012 at 03:49 UTC | |
by BrowserUk (Patriarch) on Feb 09, 2012 at 04:14 UTC |