Re: Multi-threading

From: Date: Thu, 21 Feb 2008 17:34:33 +0000
Subject: Re: Multi-threading
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-35695@lists.php.net to get a copy of this message
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) which is quite different business. It may be easier to do pseudo-multithreading a-la Python, where there's only one thread running at each moment of time, but they can switch when other threads are waiting for something like I/O or some event. That would require some work for defining engine state and enabling switching, but it's easier than full multithreading support. Unfortunately, as for now nobody showed real interest in doing that. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#35695) next »