On 23 September 2015 20:48:33 BST, j adams <zardozro...@gmail.com> wrote: >> PHP uses an object store. >Am I correct in understanding that the object store is a global data >structure? Wouldn't this tend to discourage any attempts at >multithreading/multiprocessing within one's PHP script--unless the >object >store is protected by a lock...
PHP is inherently single-threaded as far as the user is concerned. There are many things which would break if you changed that. The only way I know of to write multi-threaded PHP is using the pthreads extension, which comes with some rather large caveats, and uses specific objects to communicate between threads. Regards, -- Rowan Collins [IMSoP] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php