Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47874 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45409 invoked from network); 11 Apr 2010 19:26:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Apr 2010 19:26:02 -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.218.216 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.218.216 mail-bw0-f216.google.com Received: from [209.85.218.216] ([209.85.218.216:39511] helo=mail-bw0-f216.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/06-11452-94222CB4 for ; Sun, 11 Apr 2010 15:26:02 -0400 Received: by bwz8 with SMTP id 8so2162702bwz.23 for ; Sun, 11 Apr 2010 12:25: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=oUZ+lrlMaJAkTks9CWkV00W2NNQvHh6gIe/v4AikFNQ=; b=Xuao+2/qkK90KI6XXiSxEiIX2jJZThUBBOpQit/8mKN3R7yAtpMXETCUCYTRcduHJ2 96ZG24J44w12pG3n4INvyIAKU46aUR7u4wo5h7HTEZhcQm1J3LA9F/1MHSp28JWvjcO+ mk3aAs20rMBwRvLGHbNL0DtLcdZax63jTxJV4= 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=rFtsWFjAtPcqb9qZ8MCA0drykEeAf1/xpuQN+D7mmoq3LyahEb3PMmllJReSbYCzkL KXlVyXSgDRtunUCNIYbOLcrbDx67POqQyIVUS9JWsZ2EYgwmbSSaqTBrasjyEClwgV/C KlFB/jY/eKcpR1MjwdfN+ETxIxxk/ptH4+FNk= Received: by 10.103.163.20 with SMTP id q20mr1378926muo.131.1271013958951; Sun, 11 Apr 2010 12:25:58 -0700 (PDT) Received: from tankgirl (cable-94-189-204-252.dynamic.sbb.rs [94.189.204.252]) by mx.google.com with ESMTPS id i5sm13900171mue.49.2010.04.11.12.25.57 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 11 Apr 2010 12:25:58 -0700 (PDT) Date: Sun, 11 Apr 2010 21:25:54 +0200 Reply-To: speedy X-Priority: 3 (Normal) Message-ID: <1459755985.20100411212554@gmail.com> To: Moriyoshi Koizumi CC: Alexey Zakhlestin , internals@lists.php.net In-Reply-To: References: <1941231697.20100401163215@gmail.com> <1288EF47-3DAE-4162-B9A6-FD21ACAEF8BB@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] php and multithreading (additional arguments) From: speedy.spam@gmail.com (speedy) Hello Moriyoshi, Monday, April 5, 2010, 5:57:38 PM, you wrote: > While it is based on shared-nothing approach, some kinds of resources > are shared across threads besides classes and functions that would > have already been defined before the thread creation. Maybe it would not be so hard incrementally add thread safe constructs like thread safe string, thread safe array, etc. which would be shared between threads, similar to current constructs, just access-serialized via mutexes / rwsems, protected with memory barriers for the changes to be visible from= all CPUs. Then, local storage could be done via normal containers, and global via thread-safe ones. I'm not sure how could that be exposed on the language level, though. --=20 Best regards, speedy mailto:speedy.spam@gmail.com