Update Socket.md

This commit is contained in:
何正海 2020-04-29 14:01:04 +08:00 committed by GitHub
parent 84dd2124db
commit c9b5e08fe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,7 +236,7 @@ epoll 仅适用于 Linux OS。
epoll select poll 更加灵活而且没有描述符数量限制 epoll select poll 更加灵活而且没有描述符数量限制
epoll 对多线程编程更友好一个线程调用了 epoll_wait() 另一个线程关闭了同一个描述符也不会产生像 select poll 的不确定情况 epoll 对多线程编程更友好一个线程调用了 epoll_wait() 另一个线程关闭了同一个描述符也不会产生像 select poll 的不确定情况
```c ```c
// Create the epoll descriptor. Only one is needed per app, and is used to monitor all sockets. // Create the epoll descriptor. Only one is needed per app, and is used to monitor all sockets.