Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21102 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72121 invoked by uid 1010); 8 Dec 2005 03:14:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 72106 invoked from network); 8 Dec 2005 03:14:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Dec 2005 03:14:40 -0000 X-Host-Fingerprint: 64.207.49.98 cbit-98.bullseye9.com Windows 2000 SP4, XP SP1 Received: from ([64.207.49.98:23870] helo=pearl.hq.booyahnetworks.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 9D/D9-14828-F15A7934 for ; Wed, 07 Dec 2005 22:14:39 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 7 Dec 2005 20:12:44 -0700 Message-ID: <4E0C5C8E5F8C994F90134920DD66E93F013DB471@pearl.hq.booyahnetworks.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] Multithreading Thread-Index: AcX7kgXSctVzRbZPSvOL3wq4TiTMjwAEtetg To: "Ilia Alshanetsky" , "Bart de Boer" , Subject: RE: [PHP-DEV] Multithreading From: adove@booyahnetworks.com ("J. Allen Dove") FWIW, I can confirm that PHP using forking and "daemon" CLI classes for async processing works like a charm. We've written a "KISS" async mechanism that's pretty robust and works perfectly even to the tune of several million tx's per day processed. And if you do the async handling right it easily scales by simply adding more processors/hardware as load demands. Just a FWIW... -----Original Message----- From: Ilia Alshanetsky [mailto:ilia@prohost.org]=20 Sent: Wednesday, December 07, 2005 5:55 PM To: Bart de Boer; internals@lists.php.net Subject: Re: [PHP-DEV] Multithreading You don't need threads, you can use fork() for that. On *nix systems it is very fast, nearly as fast as threads and much safer to boot. And you can already do forking in PHP via PCNTL extension's pcntl_fork() function. Ilia --=20 PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php