Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21099 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58819 invoked by uid 1010); 8 Dec 2005 02:49:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 58803 invoked from network); 8 Dec 2005 02:49:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Dec 2005 02:49:04 -0000 X-Host-Fingerprint: 70.85.46.36 unknown Received: from ([70.85.46.36:56126] helo=prohost.org) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 20/38-14828-F1F97934 for ; Wed, 07 Dec 2005 21:49:04 -0500 Received: (qmail 16208 invoked from network); 8 Dec 2005 02:49:00 -0000 Received: from prohost.org (HELO ?127.0.0.1?) (70.85.46.36) by prohost.org with SMTP; 8 Dec 2005 02:49:00 -0000 Message-ID: <43979F1B.5000001@prohost.org> Date: Wed, 07 Dec 2005 21:48:59 -0500 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bart de Boer CC: internals@lists.php.net References: <22.BF.14828.12287934@pb1.pair.com> <43978448.9020004@prohost.org> In-Reply-To: X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Multithreading From: ilia@prohost.org (Ilia Alshanetsky) Bart de Boer wrote: > Ilia Alshanetsky wrote: > >> 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 > > > That sounds sufficient enough. Although I guess this only works on *nix > systems? Platform independence is one of the main reasons I prefer PHP > over other languages. fork() works on windows as well, but on Win32 forking is MUCH slower then threads. Ilia