Re: [PHP-DEV] Multi-threading

2008-02-22 Thread Tim Starling
Stanislav Malyshev wrote: Hi! Just an uninformed thought: maybe the existing TSRM framework could be leveraged to provide some simple multithreading support to the user. TSRM is meant to support "share nothing" in threaded environment. Multi-threading should support sharing data (including

Re: [PHP-DEV] Multi-threading

2008-02-21 Thread Daniel Henning
Hi, >well, there is http://pecl.php.net/package/threads >it was never finished, thogh After I played around with this extension, I've finally compiled a working version for included files (thread_include(...)) which also doesn't crash any more at shutdown (WinXP, PHP 5.2.2). This extension nee

Re: [PHP-DEV] Multi-threading

2008-02-21 Thread Stanislav Malyshev
Hi! I know multi-threading is an enormous source of bugs, but I think it does offer a good support for large-scale apps considering the background processes and event-driven programming, and also allowing Multithreading does not fit well in the set of assumptions PHP engine is built on (thoug

Re: [PHP-DEV] Multi-threading

2008-02-21 Thread Stanislav Malyshev
Hi! Just an uninformed thought: maybe the existing TSRM framework could be leveraged to provide some simple multithreading support to the user. TSRM is meant to support "share nothing" in threaded environment. Multi-threading should support sharing data (including locking & synchronization)

Re: [PHP-DEV] Multi-threading

2008-02-21 Thread Alexey Zakhlestin
On 2/21/08, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Thankyou for taking the time to shed some light on the mater for me; I'd > missed the all vital "sharing resources" part of the concept, probably > because (if I'm correct in saying) php shares memory of > variables/classes/resources betwee

Re: [PHP-DEV] Multi-threading

2008-02-21 Thread Nathan Rixham
Alexey Zakhlestin wrote: On 2/21/08, Nathan Rixham <[EMAIL PROTECTED]> wrote: hope you don't mind me asking for a bit more info, I was always under the impressions that a thread is defined as (quote wiki) "Threads are a way for a program to fork (or split) itself into two or more simultaneou

Re: [PHP-DEV] Multi-threading

2008-02-21 Thread Alexey Zakhlestin
On 2/21/08, Nathan Rixham <[EMAIL PROTECTED]> wrote: > hope you don't mind me asking for a bit more info, I was always under > the impressions that a thread is defined as (quote wiki) > > "Threads are a way for a program to fork (or split) itself into two or > more simultaneously (or pseudo-simu

Re: [PHP-DEV] Multi-threading

2008-02-21 Thread Nathan Rixham
David Coallier wrote: On Wed, Feb 20, 2008 at 10:36 PM, Felipe Ribeiro <[EMAIL PROTECTED]> wrote: Hello, I've been reading this list for a couple of months and I have a question that might have already been discussed here before and I haven't seen, so please apologize me. My question is if

Re: [PHP-DEV] Multi-threading

2008-02-21 Thread Alexey Zakhlestin
well, there is http://pecl.php.net/package/threads it was never finished, thogh Here's the thread about it, from last august: http://thread.gmane.org/gmane.comp.php.pecl.devel/3996 On 2/21/08, Felipe Ribeiro <[EMAIL PROTECTED]> wrote: > Hello, > > I've been reading this list for a couple of mont

Re: [PHP-DEV] Multi-threading

2008-02-20 Thread Tim Starling
Felipe Ribeiro wrote: Hello, I've been reading this list for a couple of months and I have a question that might have already been discussed here before and I haven't seen, so please apologize me. My question is if there's any intent to have multi-threading support to PHP in a future version, l

Re: [PHP-DEV] Multi-threading

2008-02-20 Thread David Coallier
On Wed, Feb 20, 2008 at 10:36 PM, Felipe Ribeiro <[EMAIL PROTECTED]> wrote: > Hello, > > I've been reading this list for a couple of months and I have a > question that might have already been discussed here before and I > haven't seen, so please apologize me. > > My question is if there's any

[PHP-DEV] Multi-threading

2008-02-20 Thread Felipe Ribeiro
Hello, I've been reading this list for a couple of months and I have a question that might have already been discussed here before and I haven't seen, so please apologize me. My question is if there's any intent to have multi-threading support to PHP in a future version, like PHP7. I know multi-