[Libevent-users] http: libevent vs many threads

Springande Ulv springandeulv at gmail.com
Fri Apr 18 18:23:16 EDT 2008


On 18. april. 2008, at 22.36, Cezary Rzewuski wrote:
>> our best bet is to use a single thread using
>> libevent, or go totally multi-threaded without libevent. In 90% of  
>> the
>> circumstances one of those options (though not both)

Why not both?! Using both threads _and_ libevent is not only possible  
both often feasible. Use libevent in a i/o bound thread and a thread  
pool for CPU bound operations. In a network application the network is  
the bottleneck and a few context switches is diminutive in this context.


More information about the Libevent-users mailing list