httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Bloom <...@covalent.net>
Subject Re: worker mpm: can we optimize away the listener thread?
Date Thu, 29 Nov 2001 18:16:34 GMT
On Thursday 29 November 2001 10:05 am, Greg Ames wrote:
> Ryan Bloom wrote:
> > The model that Brian posted is exactly what we used to do with threaded,
> > if you had multiple ports.
>
> No, you're missing a key difference.  There's no intra-process mutex in
> Brian's MPM.
>
> One thread at a time is chosen to be the accept thread without using a
> mutex.  Once it picks off a new connection/pod byte, it chooses the next
> accept thread and wakes it up before getting bogged down in serving the
> request.

So we move from a mutex to a condition variable.  Okay, yeah, I did miss
that difference.  How big is the performance win for that though?  
Remembering that condition variables require a mutex for some operations.

Ryan

______________________________________________________________
Ryan Bloom				rbb@apache.org
Covalent Technologies			rbb@covalent.net
--------------------------------------------------------------

Mime
View raw message