On Mon, Oct 17, 2005 at 02:43:19PM -0700, Lev Walkin wrote: > Michael Sierchio wrote: > > >Steven Reddie wrote: > > > >>Hi Michael, > >> > >>I'm familiar with that approach, having used it many times myself. The > >>choice of poll over select isn't important since they're basically the > >>same; > >>in fact, poll is sometimes implemented with select. > > > > > >Who implements poll with select should suffer a fate worse than > >death -- waking up a thousand sleeping threads to see if one > >has some i/o ready is what poll was designed to avoid. > > I think you're confusing a file I/O notification with mutual exclusion > and condition variables paradigm, another kind of IPC. The following > page provides necessary background information:
I believe Michael is actually talking about the "thundering herd" problem, when many processes are all waiting on a single event, which only one of them will end up responding to. That is a classic problem affecting some uses of select (and also accept, and IIRC a few other socket calls as well). Jack ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]