You are here: Multithreading/Parallel Processing with PHP « PHP Programming Language « IT news, forums, messages
Multithreading/Parallel Processing with PHP

Posted by Schroeder, AJ on 09/29/05 19:11

Group,

I have googled this topic and I know this has been asked before, but there
seems to be no good answer except "PHP doesn't support multi-threading" I am
new to PHP so I might be using the wrong terminology.

I have inherited support of php scripts that backup network gear via SNMP.
They currently work fine, and outside of the lack of good overall program
structure and flow, the scripts perform quite well.

The script is back-ended by postgres, and when it executes, it grabs a list
of device names from the database, gets the count of devices, then performs
a while loop to back up every device - unelegant but effective. However, the
amount of network gear that is being backed up is increasing, and I would
like to "multithread" the script to backup more than one device at a time so
that it doesn't take 45 + minutes to back up all of the switch gear.

Is this possible with PHP? Personally I don't think so since PHP seems to be
a "top-down" language, but maybe the gurus in this group could lend some
insight. I have looked at the "tick" functions, but those don't seem to be a
good fit.

Any help or ideas are appreciated,

AJ Schroeder

 

Navigation:

[Reply to this 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

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