Reply to Re: PHP CLI & Forking children

Your name:

Reply:


Posted by Jerry Stuckle on 09/29/07 18:51

qwertycat@googlemail.com wrote:
> On Sep 29, 3:49 pm, Andy Hassall <a...@andyh.co.uk> wrote:
>> So you're spawning 500 processes? Do you have a very large number of CPUs to
>> run them on? Otherwise only a few will actually be running at any time, and
>> you'll be losing useful throughput to overhead, surely.
>>
>
> Maybe the example I gave was bad :) How about PHP script with launches
> 4 children, with each child forking another 5 children (20 processes)
>
> Would this development headaches or possible extra bugs?
>

Just wondering - why do you need to fork processes, anyway? There's a
lot of overhead in doing it, and if they're all CPU bound anyway you
aren't going to gain anything (unless you have a potload of CPU's).

Forking is good if you have different processes using different
resources. But when they have to contend for the same resource,
performance often goes down.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация