curl-library
Re: thread pooling
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 12 Feb 2010 20:12:20 +0100 (CET)
Date: Fri, 12 Feb 2010 20:12:20 +0100 (CET)
On Fri, 12 Feb 2010, vick wrote:
> suppose i want to do async i/o with pooled threads. i create as many threads
> as there are processors. Basically would like curl multi to take advantage
> of multiple processors and complete operations on each of them. but as curl
> is not thread aware, wondering how that is possible.
Make one multi handle for each CPU and run the multi_socket API on each and
you'll get maximum performance. I think.
> This is for high performance apps though i recognize that libcurl is mainly
> a gooi-ish thing.
Sorry, I fail to see how libcurl is in anyway related to "gooi-ish" (assuming
you refer to GUI).
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-02-12