Skip to content

mrcrypster/thready

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

thready

Simple way to run multi-threaded PHP scripts (based on PCNTL)

How to use

require 'thready.php';

$thready = new thready(10); # how many threads we want to have

for ( $i = 0; $i < 1000; $i++ ) {
  $thready->add_thread(function() {
    # some logic we want to execute in child threads
  });
}

About

Simple way to run multi-threaded PHP scripts (based on PCNTL)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages