Re: php_apache2_2.dll missing in current PHP 5.3 Windows builds

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

 



On 24 June 2010 13:39, Sascha Meyer <harlequin2@xxxxxx> wrote:
> Hi Pierre,
>
> Pierre wrote:
>> Take the thread safe builds, not the non thread safe (NTS).
>
> thanks for the quick reply, that helped a lot. Could you give me some background info what the NTS versions are used for?
>
> Regards,
>
> Sascha
>
>
> --
> Freundliche Grüße / Kind regards,
>
> Sascha Meyer
> --------------------------------------------------
> EE:  http://www.experts-exchange.com/M_761556.html
> ZCE: http://www.zend.com/en/yellow-pages#show-ClientCandidateID=ZEND011290
>
> GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.
> Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

If you are using cli, cgi, fast-cgi (or variants of these), then you
can use NTS. Each instance of the php interpreter is executed
completely separately to any other instance, so anything you do in
instance 1 is not going to interfere in instance 2. Specifically (as I
understand things), the allocation, reading and writing to memory is
done in a "non thread safe" way. This means it takes no account of
other processes attempting to read/write to that memory.

Where the php interpreter is executed with "shared memory", (for
example the defunct ISAPI for Windows and I assume by the reply you
got the apache handlers also), then 1 instance of PHP is loaded and
elements of the execution are split into threads (1 thread per request
is the norm here). In this form, the threads have to play nice when
they read/write memory. They have to be "thread safe".

OK. This is probably an extreme over simplification and probably
misses other important aspects, but is pretty much the general idea.

Where PHP is "loaded" into another process, then the thread safe
variant should be used. Where PHP is "executed" as a separate process,
then the non thread safe variant can be used and will have the slight
performance increase garnered from not having to handle
memory/resources/etc in a thread safe way.



-- 
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux