Multi-Threaded Libevent Server Example

Everything you need to implement a threaded, libevent-based server.

5.0 Stars (3)
64 Downloads (This Week)
Last Update:
Download libevent-thread-20140224-1.tar.gz
Browse All Files

Description

Libevent is a nice library for handling and dispatching events, as well as doing nonblocking I/O. This is fine, except that it is basically single-threaded -- which means that if you have multiple CPUs or a CPU with hyperthreading, you're really under-utilizing the CPU resources available to your server application because your event pump is running in a single thread and therefore can only use one CPU core at a time.

The solution is to create one libevent event queues (AKA event_base) per active connection, each with its own event pump thread. This project does exactly that, giving you everything you need to write high-performance, multi-threaded, libevent-based socket servers.

Multi-Threaded Libevent Server Example Web Site

Categories

Update Notifications





User Ratings

★★★★★
★★★★
★★★
★★
3
0
0
0
0
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
Write a Review

User Reviews

  • adriandavis
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Great tool

    Posted 02/18/2013
  • jamesgomes
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Very easy to use libevent-thread

    Posted 01/24/2013
  • benjaminbailey
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Parab�ns

    Posted 09/24/2012
Read more reviews

Additional Project Details

Registered

2012-03-24
Screenshots can attract more users to your project.
Features can attract more users to your project.

Icons must be PNG, GIF, or JPEG and less than 1 MiB in size. They will be displayed as 48x48 images.