News Feed
Sections




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

Kore Nordmann's Blog:
Native parallel PHP job queue
May 07, 2010 @ 14:40:29

Kore Nordmann has put together some scripts that will let you create a native parallel job queue using only PHP (and the PCTNL extension).

To make use of multiple cores for some rather long processing operations I needed a way to fork multiple workers from a single PHP script multiple times lately. So I created a small project on github which implements this in a way, so that it should reusable by anybody. This is far from being rocket science, but still might be useful to someone out there.

He uses the ShellJobProvider (extended from JobProvider) to handle the creation of the tasks. His simple example just spawns off a few echo statements and pushes the results to some files. You can get these libraries from hos github account. You'll need PHP 5.3 and the PCTNL extension installed to get it working.

0 comments voice your opinion now!
native parallel job queue pctnl


blog comments powered by Disqus

Similar Posts

Job Posting: Synacor Seeks PHP Developer (Buffalo, NY)

Job Posting: Bold-IBS Seeks LAMP Developer (Kansas City, KS)

Job Posting: Money-Media, Inc. Seeks a Senior PHP Developer (Manhattan, NY)

Job Posting: Boutique Bay Area Consulting Firm Seeks Sr. Software Engineer (Palo Alto, CA)

Job Posting: Sai People Solutions, Inc (Recuriter) Seeks Software Development Engineer (Wichita, KS)


Community Events

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


extension voicesoftheelephpant series laravel introduction list community framework wordpress library version laravel5 example release php7 interview language podcast api opinion

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