jth/green-mt

Simple to use and naive library for pthreads extension

dev-master 2016-02-08 14:46 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:36:57 UTC


README

Simple and naïve library for php pthreads extension.

GreenMT classes are not designed to be used as is, but as a base for greater developement. It currently provide two approch :

  • Synchronized : data is fetch from inside the created threads, and result is fetch in the main thread as it becomes available
  • OnDemand : data comes from the main thread and is dispatched among the threads which process them when they need it

This library is design to work with the PHP Pthread extension pthreads, which can be find here : https://github.com/krakjoe/pthreads