Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47709 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38319 invoked from network); 1 Apr 2010 18:52:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Apr 2010 18:52:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=tony@daylessday.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tony@daylessday.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain daylessday.org designates 89.208.40.236 as permitted sender) X-PHP-List-Original-Sender: tony@daylessday.org X-Host-Fingerprint: 89.208.40.236 mail.daylessday.org Linux 2.6 Received: from [89.208.40.236] ([89.208.40.236:56693] helo=daylessday.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/24-16887-46BE4BB4 for ; Thu, 01 Apr 2010 13:52:21 -0500 Received: from [192.168.1.2] (ppp83-237-2-38.pppoe.mtu-net.ru [83.237.2.38]) by daylessday.org (Postfix) with ESMTPSA id B048DBFA085 for ; Thu, 1 Apr 2010 22:52:14 +0400 (MSD) Message-ID: <4BB4EB5D.7080102@daylessday.org> Date: Thu, 01 Apr 2010 22:52:13 +0400 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100228 SUSE/3.0.3-1.1.1 Thunderbird/3.0.3 MIME-Version: 1.0 To: internals@lists.php.net References: <1941231697.20100401163215@gmail.com> <4BB4E80A.3000402@zend.com> In-Reply-To: <4BB4E80A.3000402@zend.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] php and multithreading (additional arguments) From: tony@daylessday.org (Antony Dovgal) On 01.04.2010 22:38, Stanislav Malyshev wrote: > If you do, how you control access to them? Hello locks and the whole can > of worms! Most people that think they can program in threads actually > are just pushing their luck until some complex interaction leaves their > app malfunctioning in a bizarre way and them without any means to debug > it. Well, I don't agree with the statement above, but I do believe that if you're competent enough to use threads, then you're competent enough to write in C/C++. Not to mention that a high-performance multi-threaded daemon written in PHP is a total nonsense - that's exactly the task C/C++ do much better/faster. -- Wbr, Antony Dovgal --- http://pinba.org - realtime statistics for PHP