I/O Multiplexing: select and poll
I/O Multiplexing: select and poll
I/O Multiplexing: select and poll
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>select</strong> Fucntion<br />
OR<br />
•We can call <strong>select</strong> <strong>and</strong> tell the kernel to<br />
return only when<br />
–any descriptor in {1, 4, 5} is ready for<br />
reading (buffer 中 已 有 資 料 )<br />
–any descriptor in {2, 7} is ready for writing<br />
–any descriptor in {1, 4} has an exception<br />
condition pending<br />
–after 10.2 seconds have elapsed<br />
Buffer<br />
中 已 有<br />
空 間<br />
裝 置 有 例<br />
外 狀 況<br />
10