Tubetrue01 / articles

0 stars 0 forks source link

IO 多路复用(二) pselect 函数 | Tubetrue01 #4

Open Tubetrue01 opened 3 years ago

Tubetrue01 commented 3 years ago

https://tubetrue01.github.io/articles/2020/12/17/c_io/IO%20%E5%A4%9A%E8%B7%AF%E5%A4%8D%E7%94%A8(%E4%BA%8C)%20pselect%20%E5%87%BD%E6%95%B0/

引言 在上一篇文章 【select 函数】 中主要讲解了 select 相关的知识,本篇文章讲解它的增强版 pselect 函数。 1.0 pselect 函数 pselect 函数是 POSIX 发明的,如今有许多 Unix 变种支持它。(ps: 具体有哪些,还没调研) 1.1 函数声明123456789#include <sys/select.h>int pselect( in