On Wed, Oct 10, 2012 at 8:31 PM, V G wrote: > Thanks for the info, guys. > > I missed the major point that caused my confusion: > > select() waits until I/O is available based on its timeout argument. I wa= s > under the impression that it returned immediately and would constantly ke= ep > the loop running at full speed if I/O is not available. Now it all makes > sense. > > In addition, epoll() and kqueue() are better to use than select since > they're O(1) whereas select() is O(n). Also, note the poll() implementations across various *nix platforms vary http://www.greenend.org.uk/rjk/tech/poll.html --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .