Re: Threading & PHP
| From: | Mark Charette | Date: | Sat, 24 Jan 2004 21:15:54 +0000 |
| Subject: | Re: Threading & PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175652@lists.php.net to get a copy of this message | ||
On Sat, 24 Jan 2004, Galen wrote:
> Hi,
>
> This may be completely crazy, but let me tell you what I want to do:
> thread PHP.
Can you set processor affinity on your system? If so, you can "pseudo
thread" by assigning processes to different CPUs; e.g., run your main
Webserver on one processor and a slave Web server or helper processes
assigned to the other processor. This is a very common way of dividing
tasks on multi-processor systems where code-rewrites to make things
thread-safe are not cost effective.
--
"Half the people know what they're talking about, and the
other half are writing code."