嵌入式软件开发之------浅析 linux select/poll(十三)
linux代码版本:linux4.4
导读:之前在学习 linux 驱动的时候,有涉及到 file->poll 成员,由用户态 select/poll 最终调用到,而 select 和 poll 又是用户态编程常用接口,当要对大量文件进行读写时,尤其是 socket ,只用read和write函数显然不是一个好的选择,但 select 和 poll 也有一些局限性,而 epoll 相比确实存在一些优势。下面就分析 select 和 poll 。
一、poll 函数
由于看着部分代码的时候,先..
原创
2021-02-15 21:32:22 ·
255 阅读 ·
1 评论