Re: Data serialization of objects, want to iterate 'sealed' properties then dynamic ones
| From: | Rowan Collins | Date: | Wed, 23 Sep 2015 20:33:15 +0000 |
| Subject: | Re: Data serialization of objects, want to iterate 'sealed' properties then dynamic ones | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88455@lists.php.net to get a copy of this message | ||
On 23 September 2015 20:48:33 BST, j adams <zardozrocks@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]