WebWorkers-Helper
A simple Node.js webworker-threads module helper.
Note #1 This module
can be used with any existing version of node.js
and npm
.
How to install the module:
By using npmjs.org
:
npm install webworkers-helper --global --save
npm install webworkers-helper --save
webworkers-helper
module installed:
How to use the Creating and running a pool of n webworker-threads
;
Constructing and running three-dimensional grid of webworker-threads
var callback3d = test_cb1123 test_cb1456 test_cb1789 test_cb1101112 test_cb1131415 test_cb1161718 test_cb1192021 test_cb1222324 ; ; ... # Constructor `.ArgvParser`#####WorkersHelper - constructs a webworkers helper object # Methods ##### Creating a pool of n webworker-threads The first parameter of this method `n` is the actual number of threads in a teamThe second parameter `args` is an array of arguments Each argument in the array is a tuple of two values for each particular thread to be executed This tuple contains two values of a thread callback .then(function (ret) { ... }); Creates a three-dimensional grid of threads to optimize the performance of solving a multidimensional problemThe first argument of this # Author Arthur V. Ratz @ Epsilon Software Development Labs.