PHP Classes

Multi Threaded Daemon: Manage the execution of parallel threads

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,279 All time: 3,001 This week: 153Up
Version License PHP version Categories
multithreadeddaemon 1.0GNU General Publi...5Unix


This class can be used to manage the execution of running multiple parallel tasks in PHP using the pcntl extension.

It can start a given number of parallel threads that execute code defined by functions of implementation sub-classes.

The main class can manage the execution of code in critical sections using locks to assure than only one thread executes critical section code at a time.

The class also manages the access to variables that are shared by threads running at the same time.

Picture of Killerwhile
Name: Killerwhile <contact>
Classes: 1 package by
Country: Switzerland Switzerland
Age: 42
All time rank: 203323 in Switzerland Switzerland
Week rank: 398 Up6 in Switzerland Switzerland Up

  Files folder image Files  
File Role Description
Files folder imageinclude (2 files)
Plain text file example1.php Example Simple example 1

  Files folder image Files  /  include  
File Role Description
  Accessible without login Plain text file class.MTDaemon.php Class Main core class
  Plain text file class.MTLog.php Class Simple logging class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,001
This week:153Up