CopyPastor

Detecting plagiarism made easy.

Score: 0.7591299414634705; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2015-12-14
by Somnath Muluk

Original Post

Original - Posted on 2011-08-26
by Crack



            
Present in both answers; Present only in the new answer; Present only in the old answer;

As per [PHP Documentation](http://php.net/manual/en/faq.obtaining.php#faq.obtaining.threadsafety),
#What does thread safety mean when downloading PHP?
> Thread Safety means that binary can work in a multithreaded webserver > context, such as Apache 2 on Windows. Thread Safety works by creating > a local storage copy in each thread, so that the data won't collide > with another thread. > > So what do I choose? If you choose to run PHP as a CGI binary, then > you won't need thread safety, because the binary is invoked at each > request. For multithreaded webservers, such as IIS5 and IIS6, you > should use the threaded version of PHP.

Following Libraries are not thread safe. They are not recommended for use in a multi-threaded environment.
- SNMP (Unix) - mSQL (Unix) - IMAP (Win/Unix) - Sybase-CT (Linux, libc5)
From PHP documentation:
> Thread Safety means that binary can work in a multithreaded webserver context, such as Apache 2 on Windows. Thread Safety works by creating a local storage copy in each thread, so that the data won't collide with another thread.
> So what do I choose? If you choose to run PHP as a CGI binary, then you won't need thread safety, because the binary is invoked at each request. For multithreaded webservers, such as IIS5 and IIS6, you should use the threaded version of PHP.
So it really depends on the way that you want to use PHP:
* Apache + `LoadModule`: Thread Safe * Apache + FastCGI: Non-Thread Safe * IIS: Thread Safe * IIS + FastCGI: Non-Thread Safe
PHP manual has nice [installation instructions](http://php.net/install.windows).
AFAIR running PHP with FastCGI is the preferable way, it performs faster and allows for more fine-grained security configuration.

        
Present in both answers; Present only in the new answer; Present only in the old answer;