<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 25 May 2013 13:58:33 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Kore Nordmann's Blog: Native parallel PHP job queue]]></title>
      <guid>http://www.phpdeveloper.org/news/14483</guid>
      <link>http://www.phpdeveloper.org/news/14483</link>
      <description><![CDATA[<p>
<i>Kore Nordmann</i> has put together some scripts that will let you create a <a href="http://kore-nordmann.de/blog/0098_native_job_queue.html">native parallel job queue</a> using only PHP (and the <a href="http://php.net/manual/en/book.pcntl.php">PCTNL extension</a>).
</p>
<blockquote>
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.
</blockquote>
<p>
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 <a href="http://github.com/kore/njq">hos github account</a>. You'll need PHP 5.3 and the PCTNL extension installed to get it working.
</p>]]></description>
      <pubDate>Fri, 07 May 2010 14:40:29 -0500</pubDate>
    </item>
  </channel>
</rss>
