Re: Multithreading
| From: | Ilia Alshanetsky | Date: | Thu, 08 Dec 2005 02:48:59 +0000 |
| Subject: | Re: Multithreading | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-21099@lists.php.net to get a copy of this message | ||
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