Displaying 1 to 4 from 4 results

threads.js - Easy to use, yet powerful multi-threading library for node.js and the browser.


Javascript thread library. Uses web workers when run in browsers and child processes when run by node.js. Also supports browsers which do not support web workers.You don't have to write the thread's code inline. The file is expected to be a commonjs module (so something that uses module.exports = ...), for node and browser.

pthread_pool - A simple implementation of thread pooling for C/C++ using POSIX threads


A simple implementation of thread pooling for C/C++ using POSIX threads. Each pool has a designated worker function, and expects to be given a number of work items. Any thread in the pool can take a work item, and will pass the work item to the pool's worker function. The work items are void *, and are passed to the worker function exactly as they are given to pool_enqueue. The return values of the worker functions are ignored.