This commit is contained in:
parent
58afcb458c
commit
bc65033093
|
@ -22,4 +22,6 @@ tags: [git]
|
|||
branch = auto
|
||||
[push]
|
||||
default = simple
|
||||
[core]
|
||||
editor = vim
|
||||
```
|
||||
|
|
|
@ -21,6 +21,8 @@ tags: [os, epoll]
|
|||
|
||||
再后来,多路复用器出现了,select() 支持一次传多个连接做参数,虽然还是需要挨个连接判断一遍,但这个遍历过程全程在内核态完成。减少了系统调用的次数。这个阶段最突出的问题,在于内核内部依然需要遍历所有连接。poll() 这个多路复用器会更新一点,但它的实现也是需要遍历所有连接。
|
||||
|
||||
“路” 指的是 用户程序,调用操作系统的系统调用接口,读取scoket 中的数据 的路
|
||||
|
||||
## 多路复用器的更新
|
||||
|
||||
再后来,多路复用器出了一个新的版本,叫 epoll。
|
||||
|
|
Loading…
Reference in New Issue