Sign up FAST! Login

API Design Matters | May 2009 | Communications of the ACM


Stashed in: Software!

To save this post, select a stash from drop-down menu or type in a new one:

Yet another observation is that Select() accepts a time-out value in microseconds: if no socket becomes ready within the specified time-out, Select() returns. Note, however, that the function has a void return type—that is, it does not indicate on return whether any sockets are ready. To determine whether any sockets are ready, the caller must test the length of all three lists; no socket is ready only if all three lists have zero length. 

Whenever you go down the stack of turtles, inevitably there's polling *somewhere*.

You May Also Like: