httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Pane <>
Subject Re: perchild on FreeBSD 5?
Date Thu, 15 Aug 2002 15:31:06 GMT
Gabriel Ambuehl wrote:

>Hi Rasmus Lerdorf,
>you wrote.
>>>time spent in mutex-protected code is 99% of the total request processing
>>>time, then the server will scale poorly.  The key success factor is to not
>>>use libraries that require locking for lengthy operations.
>RL> If, for example, we have to mutex an entire database library and every
>So it is expected to break up, for example, PHP in libraries that do
>support threading explicitely and such that don't or aren't known to
>do it instead of having a mutex around all of PHP?

No, not at all.  The library partitioning is irrelevant:
it's functions, not libraries, that have to be wrapped in
mutexes if they're not thread-safe.


View raw message