Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 850881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:20:16+00:00 2026-05-15T07:20:16+00:00

I experiment with a lot of open source software and I’ve noticed a fair

  • 0

I experiment with a lot of open source software and I’ve noticed a fair amount of server type applications in the open source world use libevent to facilitate event-based processing rather than spawn multiple threads to handle requests.

I also do a lot of .NET programming (it’s my core job function), and I’m interested in learning how libevent relates to the .NET event model. Are events in .NET the equivalent of libevent for C programs? Should I try to learn libevent and attempt to use it in custom .NET server applications or is using the standard .NET event model basically the same thing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T07:20:17+00:00Added an answer on May 15, 2026 at 7:20 am

    .NET events and libevent are not equivalent, though they share abstract concepts.

    .NET events allow non-deterministic communication between CLR components. In C#, the component is an object – events are class members. In other languages, like F#, objects are not required. An event allows consumers to subscribe to notifications that occur on specific conditions in the source – a button is clicked, a download is complete, an exception occurred, etc. A few characteristics of .NET events:

    • They’re not tied to the underlying OS
    • You can define events for any condition.
    • They’re not inherently asynchronous (the notifier and the notified aren’t necessarily running at the same time, though they can be).

    libevent allows non-deterministic, asynchronous communication between the OS and a consumer. This might feel similar to .NET events because they both invert control, but the mechanisms are very different.

    • libevent uses OS-specific, non-blocking I/O(/dev/poll, kqueue, epoll) to improve performance. Your results will vary depending on the OS and mechanism you use.
    • libevent event conditions include state changes in file descriptors, OS signals, or timeouts. You can’t define arbitrary callback conditions.
    • libevent is inherently asynchronous. The consumer doesn’t block while waiting for the OS to return.

    Should I try to learn libevent and
    attempt to use it in custom .NET
    server applications…?

    If you’re doing it for fun, sure. If you’re doing it for work, probably not. libevent claims its biggest performance gains on *nix systems. Windows uses a different networking paradigm. The libevent developers are addressing these differences in version 2 but 2.0.5 is still a beta release.

    In addition, .NET offers its own non-blocking I/O libraries including asynchronous sockets.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want something simple in order to experiment/hack. I've created a lot interpreters/compilers for
I'm supposed to use a data analysis program for a physics experiment. I can't
I'd like to experiment with burn-down and planning game with the team I'm on.
I have an experiment streaming up 1Mb/s of numeric data which needs to be
I want to experiment with GCC whole program optimizations. To do so I have
I'm trying to experiment with xampp. After having some space issues, I wanted to
I am attempting to experiment with linq to sql using this site as a
I wish to perform an experiment many different times. After every trial, I am
I'm using a small site to experiment with the uploading of pictures and displaying
What is the best compiler to experiment with C++0x features? I have been experimenting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.