Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35695 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22284 invoked by uid 1010); 21 Feb 2008 17:34:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 22269 invoked from network); 21 Feb 2008 17:34:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2008 17:34:41 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:21954] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 55/38-09272-F26BDB74 for ; Thu, 21 Feb 2008 12:34:41 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 21 Feb 2008 19:34:45 +0200 Received: from [192.168.16.90] ([192.168.16.90]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 21 Feb 2008 09:34:42 -0800 Message-ID: <47BDB629.6050600@zend.com> Date: Thu, 21 Feb 2008 09:34:33 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Tim Starling CC: internals@lists.php.net References: <47BD0267.3050809@wikimedia.org> In-Reply-To: <47BD0267.3050809@wikimedia.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Feb 2008 17:34:42.0504 (UTC) FILETIME=[0AD7CC80:01C874B0] Subject: Re: [PHP-DEV] Multi-threading From: stas@zend.com (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) 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