PHP Process Forking & Daemonizing Library
PHP
Latest commit 33c1f80 Sep 11, 2015 @jimbojsb Merge pull request #2 from hello2t/master
fix require_once bug

README.md

Build Status

<?php
require_once __DIR__ . '/vendor/autoload.php';
$callback = function($arg1) {
    echo getmypid() . ": " . $arg1 . "\n";
};

$callbackQueue = new Workman\CallbackQueue($callback, 3);
for ($c = 0; $c < 100000; $c++) {
    $callbackQueue->push([$c]);
}
$callbackQueue->work(7);