This commit is contained in:
chenyan 2023-05-06 17:36:59 +08:00
parent 58afcb458c
commit bc65033093
2 changed files with 4 additions and 0 deletions

View File

@ -22,4 +22,6 @@ tags: [git]
branch = auto
[push]
default = simple
[core]
editor = vim
```

View File

@ -21,6 +21,8 @@ tags: [os, epoll]
再后来多路复用器出现了select() 支持一次传多个连接做参数虽然还是需要挨个连接判断一遍但这个遍历过程全程在内核态完成。减少了系统调用的次数。这个阶段最突出的问题在于内核内部依然需要遍历所有连接。poll() 这个多路复用器会更新一点,但它的实现也是需要遍历所有连接。
“路” 指的是 用户程序调用操作系统的系统调用接口读取scoket 中的数据 的路
## 多路复用器的更新
再后来,多路复用器出了一个新的版本,叫 epoll。