11.01.2015 Views

I/O Multiplexing: select and poll

I/O Multiplexing: select and poll

I/O Multiplexing: select and poll

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Five I/O Models<br />

•blocking I/O: blocked all the way<br />

•nonblocking I/O: if no data in buffer, immediate<br />

returns EWOULDBLOCK<br />

•I/O multiplexing (<strong>select</strong> <strong>and</strong> <strong>poll</strong>): blocked<br />

separately in wait <strong>and</strong> copy<br />

•signal driven I/O (SIGIO): nonblocked in wait<br />

but blocked in copy (signaled when I/O can be<br />

initiated)<br />

•asynchronous I/O (aio_): nonblocked all the way<br />

(signaled when I/O is complete)<br />

4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!