LIBUV Source Analysis Preface

Source: Internet
Author: User

What is the difference between LIBEVENT,LIBEV,LIBUV and three?

libevent provides a complete solution (event library, non-blocking IO Library,http Library,DNS client), However , Libevent uses global variables, resulting in non-thread safety. Its watcher structure is also too large to integrate I/O, timers, and signal handles. Also, thelibevent Add-ons, such as http and DNS libraries, are not implemented well and have security issues.

Libev Because of the birth of libevent , libevent made improvements to avoid the use of global variables, split watcher and so on. In addition, Libev removes external libraries (such as http and DNS) and focuses only on event-driven services, so it's more streamlined.

The LIBUV employs an asynchronous (asynchronous), event-driven (Event-driven) programming style, whose main task is to provide a set of event loops and callback functions based on I/O (or other activity) notifications for the driver LIBUV Provides a set of core toolset, such as timers, support for non-blocking network programming, asynchronous access to file systems, sub-processes, and other

node. JS originated initially in theyears, is a can letJavaScript code out of the browser's execution environment, Libuvused aGoogleof theV8 execution Engine andMarc Lehmannof theLibev. node. JS will event-drivenI/Omodel and programming language suitable for the model(Javascript)fused together., withnode. jsthe increasingly popular, node. jsdevelopers are also aware that they should letnode. jsin theWindowscan also work under the platform, butLibevonly inUnixoperating in the environment. Windowson the platform andkqueue (FreeBSD)or(e) Poll (Linux)the corresponding mechanism for kernel event notification isIOCP, Libuvbased on the characteristics of different platforms(UnixPlatform forLibev, WindowsPlatform forIOCP)provides a unified base for top-level applications based onLibev APIthe abstractnode. jsUseEvent-driven, non-blocking I/Omodels, which are lightweight and efficient, are ideal for running data-intensive real-time applications on distributed devices.

Follow-up will be the LIBUV source code for in-depth understanding analysis, will be the whole to share to everyone!

Http://www.cnblogs.com/Lifehacker/p/whats_the_difference_between_libevent_and_libev_chinese.html

LIBUV Source Analysis Preface

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.