Subj : Re: Futexes are wrong! (Are they?) To : comp.programming.threads From : Marcin 'Qrczak' Kowalczyk Date : Mon Jun 13 2005 11:28 pm "David Schwartz" writes: >> 1. You don't have to make 10,000 bit bitset for select() call on >> 10,000 fd's; > > If you want simplicity, you can use 'poll' with a thread pool. > If you want the highest possible performance, you can use whatever > provides the best performance on your OS. Linux since recently provides epoll which is asymptotically more efficient (descriptors are registered and unregistered one by one instead of providing all of them on each call). Warning: it had a memory leak in the kernel in versions 2.6.0-2.6.7. -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/ .