cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Boost::thread and libcurl

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Sun, 1 May 2011 21:01:48 +0200

On Sunday 01 May 2011 19:39:13 Radu Brumariu wrote:
> I doubt it is blocking on that ). However I am not sure if the threads
> would be scheduled like ordinary processes, or they would be scheduled
> to run within the time slice of the parent process . If the latter is
> true, then it would sort of help explain what I am seeing.

This should be something easy to try. Just replace boost::thread()/join_all()
by fork()/wait() and you will see if you get different results when compared
to your thread-based solution.

Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-01