Hi Cezary,<br><br>
<div class="gmail_quote">On Wed, Apr 2, 2008 at 11:15 PM, Cezary Rzewuski &lt;<a href="mailto:C.Rzewuski@elka.pw.edu.pl">C.Rzewuski@elka.pw.edu.pl</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br>I&#39;d like to ask if sending http requests with libevent is carried out in separate thread or is the library<br>
single-threaded? I want to use the library in a program which will visit many URL and download<br>it&#39;s content. Is it good idea to use libevent or the classic solution with creating a separate thread per URL<br>request will be much more efficient solution?<br>
<br>I saw that libevent was used in spybye, which is kind of similar what I want to do. I was wondering<br>if spybye were more efficient with requests served in separate threads instead of using libevent<br>(I don&#39;t say that it&#39;s not efficient, just theoretically).<br>
<br>Kind regards,<br>Cezary<br>_______________________________________________<br>Libevent-users mailing list<br><a href="mailto:Libevent-users@monkey.org" target="_blank">Libevent-users@monkey.org</a><br><a href="http://monkeymail.org/mailman/listinfo/libevent-users" target="_blank">http://monkeymail.org/mailman/listinfo/libevent-users</a><br>
</blockquote></div>
<div><br>&nbsp;</div>
<div>If you are doing a heavy load server on a HW with multiple cores</div>
<div>and/or multiple CPUs, you indeed have a business case for threading.</div>
<div>&nbsp;</div>
<div>Y may wish to look at ACE-library implementation of Leader-Followers design </div>
<div>pattern.</div>
<div>There are also great folks on the list, that implemented the pattern using</div>
<div>libevent; look in the mailing archives.<br clear="all"><br>-- <br>Sincerely,<br>Robert Iakobashvili<br>&quot;Light will come from Jerusalem&quot;<br>...........................................................<br><a href="http://curl-loader.sourceforge.net">http://curl-loader.sourceforge.net</a><br>
An open-source web testing and traffic generation. </div>