curl-library
Re: Boost::thread and libcurl
Date: Sun, 1 May 2011 00:32:40 +0200
On Sunday 01 May 2011 00:00:47 Ben Noordhuis wrote:
> On Sat, Apr 30, 2011 at 22:49, Daniel Stenberg <daniel_at_haxx.se> wrote:
> > It would make sense if the 10 threads used 100% CPU, but usually getting
> > 10 simultaneous transfers don't consume all CPU so adding more threads
> > should not make them run (much) longer.
>
> The more threads you have, the more time they'll spent in a blocked
> 'I/O pending' state. And a blocked thread won't immediately wake up
> when new data arrives.
Is not the only observation here that just the network bandwith is getting
divided among those threads?
Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-01