PHP Classes

Multi Threaded Daemon: Manage the execution of parallel threads

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,280 All time: 3,002 This week: 571Up
Version License PHP version Categories
multithreadeddaemon 1.0GNU General Publi...5Unix
Description 

Author

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

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

  Files folder image Files (3)  /  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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,280
This week:0
All time:3,002
This week:571Up