资 源 简 介
Muduo - A C++ non-blocking multi-threaded network library for Linux
Source code repository: https://github.com/chenshuo/muduo
Download tarballs: https://github.com/chenshuo/muduo/releases latest
Introduction slides: http://www.slideshare.net/chenshuo/muduo-network-library
Goals
Small code base, less than 5,000 lines of code
A library, not a framework
Thread safe and efficient, minimize locking
Support multi-threading out-of-box
Single thread as a special case of multi-threads.
Simplifies network programming by supporting only one established event-driven model:
One event loop per thread, with non-blocking IO
Each connection/acceptor/timer is bound to one reactor
Events happen in predictable thread
Focus on server side
Support single-threaded and thread-pool