Re: Multi-threading
| From: | Tim Starling | Date: | Fri, 22 Feb 2008 08:54:33 +0000 |
| Subject: | Re: Multi-threading | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35722@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
Hi!I'm saying that you could make multiple "share nothing" instances available to the user, for a programming model intermediate between multiprocessing and traditional threading. Python-style multithreading wouldn't be useful for the applications I have in mind. -- Tim StarlingJust 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.