Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47787 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19281 invoked from network); 5 Apr 2010 10:17:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Apr 2010 10:17:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.215 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.219.215 mail-ew0-f215.google.com Received: from [209.85.219.215] ([209.85.219.215:45156] helo=mail-ew0-f215.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/67-06298-6D8B9BB4 for ; Mon, 05 Apr 2010 06:17:59 -0400 Received: by ewy7 with SMTP id 7so557741ewy.11 for ; Mon, 05 Apr 2010 03:17:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=G2cAcI1O513y36H6NjP80Yo8tTX62VIPX9K+hbVzp3Q=; b=dCLIK/KBBSR0tGZiF+ynVFq6QFz5IEnCfUTvri2FvqNEX3p4lG6K04MKvARHNGt+Bp mWVUEugMJWHv7g/wlB8BsCUxf3KdpRfEn6dJQ+09pyPzrwvloJYQC5cz6v9BMn63Rmed QIRSsfW8OSyUv5/he2tgPhCOjPvoIyx7KxXj0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=j6AjBfzk79UVb2nB+DA9gEdVaViyacLzDQNgRdFHgQS6qYF4FNXlwIQ8EOmA9hW7Pe Hvn4BzBQDYVxVzgzyyXa4b4NQIlj1ycKyf0W6vS5Ebh3A1iZkAeBCpo/FK/95zw2mzcE 79dfDpcP9ZhebyjibpKyChW7VawB5X+j+TK2U= Received: by 10.213.46.145 with SMTP id j17mr1320393ebf.89.1270462675541; Mon, 05 Apr 2010 03:17:55 -0700 (PDT) Received: from nirvana.lan ([93.185.190.227]) by mx.google.com with ESMTPS id 15sm6225906ewy.8.2010.04.05.03.17.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 05 Apr 2010 03:17:54 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii In-Reply-To: Date: Mon, 5 Apr 2010 14:17:52 +0400 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <1288EF47-3DAE-4162-B9A6-FD21ACAEF8BB@gmail.com> References: <1941231697.20100401163215@gmail.com> To: Moriyoshi Koizumi X-Mailer: Apple Mail (2.1078) Subject: Re: [PHP-DEV] php and multithreading (additional arguments) From: indeyets@gmail.com (Alexey Zakhlestin) On 05.04.2010, at 13:46, Moriyoshi Koizumi wrote: > I used to play with TSRM days ago and successfully implemented > userland threading support using GNU Pth. It's just a proof of > concept and I did it for fun. So these are share-nothing worker-threads, which can send results to = "master-thread" using messages. right? I am perfectly fine with such approach some stylistic moments: * I would use closures instead of callback-functions * Is extra language construct really needed? function-call would work = just fine Is overhead of starting new thread large?