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 [EMAIL PROTECTED] Covalent Technologies [EMAIL PROTECTED] --------------------------------------------------------------