Reply to Re: PHP CLI & Forking children

Your name:

Reply:


Posted by Andy Hassall on 09/29/07 14:49

On Sat, 29 Sep 2007 03:12:19 -0700, qwertycat@googlemail.com wrote:

>I'm new to multi-process programming, should one avoid forking
>children from children of a parent?
>
>I'd like to spawn 10 children from the parent and each of those
>children spawns another 5 children which process chunks of data (200
>rows) with heavy usage of CPU and regexp

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.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

[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

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