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.
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to