News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

John Lim's Blog:
Parallel Processing in PHP
September 22, 2008 @ 08:47:14

John Lim has two new posts covering parallel processing in PHP and how to use this "divide and conquer" idea to not only speed up your code but to make it more maintainable down the road.

In the first post:

One problem we were having is that some of our batch processing jobs were taking too long to run. In order to speed the processing, we tried to split the processing file into half, and let a separate PHP process run each job. [...] Here is our technique for running multiple parallel jobs in PHP. In this example, we have two job files: j1.php and j2.php we want to run.

The code is included for the job files and the "controller" that manages them. In the second article, he builds on this and shows a more practical example - finding the median of a set of records out of a database.

0 comments voice your opinion now!
parallel processing tutorial divide conquer


blog comments powered by Disqus

Similar Posts

DevShed: Using Conditional Statements with the Xdebug Extension

Hasin Hayder's Blog: RSA Encrypting and Decrypting data with Zend_Crypt_Rsa Library

PHPMaster.com: Debugging and Profiling PHP with Xdebug

SitePoint PHP Blog: Hashing Passwords with the PHP 5.5 Password Hashing API

PHPMaster.com: Data Structures for PHP Devs: Trees


Community Events





Don't see your event here?
Let us know!


api development list tips laravel version introduction interview release conference series framework podcast zendserver developer deployment code language application community

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework