Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21087 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99784 invoked by uid 1010); 8 Dec 2005 00:49:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99769 invoked from network); 8 Dec 2005 00:49:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Dec 2005 00:49:11 -0000 X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.4/2.6 Received: from ([204.11.219.139:38688] helo=colo.lerdorf.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 4C/EF-14828-60387934 for ; Wed, 07 Dec 2005 19:49:11 -0500 Received: from [207.126.233.18] (rasmus2.corp.yahoo.com [207.126.233.18]) (authenticated bits=0) by colo.lerdorf.com (8.13.5/8.13.5/Debian-3) with ESMTP id jB80n7lV031015 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 7 Dec 2005 16:49:08 -0800 Message-ID: <43978303.3070809@lerdorf.com> Date: Wed, 07 Dec 2005 16:49:07 -0800 User-Agent: Thunderbird 1.5 (Macintosh/20051025) MIME-Version: 1.0 To: Bart de Boer CC: internals@lists.php.net References: <22.BF.14828.12287934@pb1.pair.com> In-Reply-To: <22.BF.14828.12287934@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Multithreading From: rasmus@lerdorf.com (Rasmus Lerdorf) Bart de Boer wrote: > Dear PHP creators, > > I was wondering. (And I'm probably the 1000th person asking this.) With > all the multiple-core processors and servers popping up lately, are > there any future (or current) plans for multithreading in PHP? > > It's not unlikely to have a PHP script that, for example, needs to send > an email, do some database transactions and perhaps communnicate with a > web service simultaneously. In such situations where the script needs to > wait for multiple external actions it could really improve performance. > > I know there are other ways to do it. (It's possible to do > "multithreading" with sockets.) Still I think it would be cool if there > would be native support. As a fanatic PHP programmer it has always been > something that I envy about in other languages. There are no plans for this. Asynchronous mechanisms are generally a much more efficient way to do this stuff. -Rasmus