[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [apache-plusplus] Something else to think about...





On Thu, 28 May 1998, Bret wrote:

> 	Wby not go with the idea of a single thread doing everything... basically
> replacing the processes in the current Apache implementation with threads?

That's what we're already doing... there's at least four threaded versions
of apache now... two aren't publically available, one is the NT version of
apache 1.3, and the other is apache-nspr.

> Okay, so that's a simplification, but you get the point... we slap a mutex
> around accept(), which is performed within each thread, thereby removing
> the need for a _single_ condition variable, and watch performance
> skyrocket.

On linux, the performance improves, but doesn't skyrocket.  I'm talking
maybe a 10% improvement in crude benchmarks.  There's still more to be
gained, but it's not going to be a huge change.

Dean