One of the primary concerns about using select is that it is limited to fewer than 1023 file descriptors - on a busy server that is a very easy limit to exceed. On Wed, Oct 10, 2012 at 11:01 AM, 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). > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 Glen Wiley "A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away." - Antoine de Saint-Exupery --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .