Jack Lloyd wrote:

On Mon, Oct 17, 2005 at 02:43:19PM -0700, Lev Walkin wrote:

Michael Sierchio wrote:
[skip]
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).

Including poll().

--
Lev Walkin
[EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to