Learn muduo - Part 6 Simple Introduction to muduo Network Library

本系列是 《Linux 多线程服务端编程:使用 muduo C++ 网络库》 学习笔记。

Part 6: muduo 网络库简介

常见的并发网络服务程序设计方案

方案 并发模型 阻塞 IO IO 复用 长连接 并发性 特点
0 accept + reaf/write 一次服务一个客户
1 accept + fork process-per-connection
2 accept + thread thread-per-connection
3 prefork
4 pre threaded
5 poll (reactor) 单线程 reactor
6 reactor + thread-per-task thread-per-request
7 reactor + worker thread worker-thread-per-connection
8 reactor + thread poll 主线程 IO,工作线程计算
9 reactors in threads one loop per thread
10 reactors in processes Nginx
11 reactor + thread pool 最灵活的 IO 与 CPU 配置

Learn muduo - Part 6 Simple Introduction to muduo Network Library
http://wasprime.github.io/Dev/Library/muduo/Learn-muduo-Part-6-Simple-Introduction-to-muduo-Network-Library/
Author
wasPrime
Posted on
May 18, 2023
Updated on
May 16, 2023
Licensed under