Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Aug 2001 14:00:29 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        "Daniel M. Eischen" <eischen@vigrid.com>
Cc:        Jonathan Chen <jon@FreeBSD.ORG>, hackers@FreeBSD.ORG
Subject:   Re: pthreads and poll()
Message-ID:  <3B79916D.FE1342E2@mindspring.com>
References:  <20010813120455.A63309@enterprise.spock.org> <3B780BFC.F2BA0A9B@vigrid.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Daniel M. Eischen" wrote:
> We don't provide locking for fd's any longer (I thought this was only in
> -current, but your results seem to indicate otherwise).  If we did, only
> one thread would wake up.  The mistake in your sample seems to be that
> you're having all threads block on the same fd.  Why?

Probably he has a bunch of daemons waiting around for work to
do (e.g. HTTP daemons all listening for connections to accept
on the same fd).  Lot's of applications could use this model
to get a performance boost.

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B79916D.FE1342E2>