Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47723 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78646 invoked from network); 1 Apr 2010 20:44:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Apr 2010 20:44:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=speedy.spam@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=speedy.spam@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.223 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: speedy.spam@gmail.com X-Host-Fingerprint: 209.85.220.223 mail-fx0-f223.google.com Received: from [209.85.220.223] ([209.85.220.223:44347] helo=mail-fx0-f223.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/A7-44965-29505BB4 for ; Thu, 01 Apr 2010 15:44:03 -0500 Received: by fxm23 with SMTP id 23so1216288fxm.1 for ; Thu, 01 Apr 2010 13:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:reply-to:x-priority :message-id:to:cc:subject:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=LLBVpVE/BNXarJ3iEJma3YNWdjBc3EvlXs+UuER52x4=; b=MNClXAFRKsfQFACNn/Uz4MtBqRTtEIxZFw9gsQk1P6daS+NxpJ6DYChn31sHSdIi0d H7wytXy9TPqOEMVOE8TVNZ3RAfxiUpWzj4dB4seurQQgEokbr3C/eaHw0s2sCI2KNb77 TpX8gd8DesQS7vw+NRuGGhiFr7DDHf2SH1aVw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:reply-to:x-priority:message-id:to:cc:subject:in-reply-to :references:mime-version:content-type:content-transfer-encoding; b=PVR9phN2A7I87lKAA7NqWspRY947nGDI8DpC3rGgE30AUKRRTnGkaoIYrvKvUonkJP JdLsmBY95eUe9NNxBZyOS1xsspqsx4xzUYZMcPlXE3NB96mEfQVOPquO41+dOMxqVRMz +Ii5z/J9fBddmWVRw8+uEwCshbqOkLChi19eo= Received: by 10.87.50.37 with SMTP id c37mr2641736fgk.68.1270154639766; Thu, 01 Apr 2010 13:43:59 -0700 (PDT) Received: from tankgirl (cable-94-189-204-252.dynamic.sbb.rs [94.189.204.252]) by mx.google.com with ESMTPS id 12sm3353957fgg.14.2010.04.01.13.43.59 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Apr 2010 13:43:59 -0700 (PDT) Date: Thu, 1 Apr 2010 22:43:35 +0200 Reply-To: speedy X-Priority: 3 (Normal) Message-ID: <1554699470.20100401224335@gmail.com> To: Antony Dovgal CC: internals@lists.php.net In-Reply-To: <4BB4EB5D.7080102@daylessday.org> References: <1941231697.20100401163215@gmail.com> <4BB4E80A.3000402@zend.com> <4BB4EB5D.7080102@daylessday.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] php and multithreading (additional arguments) From: speedy.spam@gmail.com (speedy) Hello Antony, Thursday, April 1, 2010, 8:52:13 PM, you wrote: > Not to mention that a high-performance multi-threaded daemon written in P= HP > is a total nonsense - that's exactly the task C/C++ do much better/faster. I'd like to have easily written, decently performing multi-threaded daemon. And the things in between here and there are quite hard to do, but still do= able: * native multithreading (my uneducated guess: copy on write / rw-sems on the internals and mutex objects on the language level) * PHP JIT (via LLVM or similar) I do agree with the parent poster that it is a can of worms which can easily shoot you in the foot ;) Some kind of php.ini or #pragma-alike threading directive for the programmer to "unlock" it him/herself would be really smart to be had. > --=20 > Wbr, > Antony Dovgal > --- > http://pinba.org - realtime statistics for PHP --=20 Best regards, speedy mailto:speedy.spam@gmail.com