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.

Brian


Reply via email to