一 IO復(fù)用技術(shù)
linux:select、poll、epoll
windows:Completion Ports
二 Reactor VS Proactor
三 阻塞喚醒
linux:pipe + epoll
windows:socket + IOCP
四 添加監(jiān)聽
五 模型偽代碼
六 事件驅(qū)動(dòng)編程
linux:消息隊(duì)列
window:消息句柄
七 定時(shí)期實(shí)現(xiàn)
- 線程軟中斷
- 系統(tǒng)時(shí)鐘