Re: Re: PHP Performance in Apache: Multi-Process vs Multi-Threaded
| From: | Johannes Schlüter | Date: | Wed, 15 Dec 2010 11:19:40 +0000 |
| Subject: | Re: Re: PHP Performance in Apache: Multi-Process vs Multi-Threaded | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51032@lists.php.net to get a copy of this message | ||
On Tue, 2010-12-14 at 22:22 +0300, jvlad wrote:
>
> No. Php if we talk about php with all its extensions is not threadsafe
> at
> all. Many of the extensions allocate static data and inherently
> non-thread-safe.
PHP is, if compiled with ZTS/TSRM, thread-safe. Some libraries used by
some extensions might not be thread safe, but basically all "usually"
used ones are thread-safe. While it is a bit complicated as some
libraries could either be compiled thread-safe or not or some might be
not thread-safe on specific systems ... but that's not PHP itself ;-)
johannes