in reply to Re^2: HTTP Requests and Threading
in thread HTTP Requests and Threading
Your threads run concurrently and will take different times to complete depending upon a bunch of factors -- the remote server's workload; distance and latency of the link between your machine and those servers; the size of the page returned; etc. -- so the order in which they finish will be unrelated to the order that you start them. That is normal.
If you want to control the order of the output, you will need to accumulate the results and arrange to output them in your desired order.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: HTTP Requests and Threading
by carlriz (Beadle) on Mar 07, 2014 at 16:10 UTC |