摘要: I/O 多路复用使得程序能同时监听多个文件描述符,能够提高程序的性能,Linux 下实现 I/O 多路复用的系统调用主要有 select、poll 和 epoll。 1. select 头文件:#include <sys/select.h> 1.1、函数原型 int select(int nfds, 阅读全文
posted @ 2022-07-09 10:59 Happinesspill 阅读(108) 评论(0) 推荐(0)