curl-library
Re: Boost::thread and libcurl
Date: Sat, 30 Apr 2011 22:20:36 +0200
On Sat, Apr 30, 2011 at 02:30, Radu Brumariu <brum76_at_gmail.com> wrote:
> I have a small app written in C++ using boost::thread and in each
> thread I GET a url and then collect the TOTAL_TIME for the call.
> For some reason, the total time to complete the request is getting
> higher in direct proportion with the number of threads(however, the
> start time, doesn't fluctuate the same way ) :
> Since all threads are spawned about the same time ( 10 at each time )
> -- it is observed that every 10 threads the latency reported increases
>
> Any suggestions on what could cause this ?
Maybe I'm not quite following you but isn't this to be expected?
There is a fixed amount of CPU time to go around and it's being sliced
thinner and thinner as the number of threads grows. How can the
response times *not* go up?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-04-30