美文网首页
Reactor高并发模型实现--C/C++

Reactor高并发模型实现--C/C++

作者: 扶海狐 | 来源:发表于2019-03-22 16:17 被阅读0次

一 IO复用技术

linux:select、poll、epoll
windows:Completion Ports

二 Reactor VS Proactor

三 阻塞唤醒

linux:pipe + epoll
windows:socket + IOCP

四 添加监听

五 模型伪代码

六 事件驱动编程

linux:消息队列
window:消息句柄

七 定时期实现

  1. 线程软中断
  2. 系统时钟

八 项目代码

相关文章

网友评论

      本文标题:Reactor高并发模型实现--C/C++

      本文链接:https://www.haomeiwen.com/subject/gorrvqtx.html