Displaying 1 to 5 from 5 results

pthreads - Threading for PHP

  •    PHP

This project provides multi-threading that is compatible with PHP based on Posix Threads. It can execute any and all predefined and user declared methods and functions asynchronously. It has built-in support of Synchronization, Synchronized Methods.

gls - goroutine local storage (use context instead if possible)

  •    Go

It is intended to be used by framworks to simplify context passing. Use context.Context to pass context if possible.

go-worker-thread-pool - A visual working example of a Thread Pool pattern, based on a known blog article

  •    Go

In computer programming, a thread pool is a software design pattern for achieving concurrency of execution in a computer program. Often also called a replicated workers or worker-crew model, a thread pool maintains multiple threads waiting for tasks to be allocated for concurrent execution by the supervising program. By maintaining a pool of threads, the model increases performance and avoids latency in execution due to frequent creation and destruction of threads for short-lived tasks. I want to get a better grasp of the pattern so I made a dummy running example, with a few alternations. I also added a visual representation using a HTML basic client & websockets. The user can send fake jobs to process, and everything is slowed down (to seconds) so the user can observe the worker behaviours.

GoSlaves - Fast asynchonous goroutine pool for Golang

  •    Go

GoSlaves is a simple golang's library which can handle wide list of tasks asynchronously and safely. Note that all of this benchmarks have been implemented as his owners recommends. More of this goroutine pools works with more than 4 goroutines.