5 ms·
People coming from multi-threaded server environments should be aware that multi-threading does in fact exist in Node (scope of parent comment), but it's rather
by jbmartin 13y ago
People coming from multi-threaded server environments should be aware that multi-threading does in fact exist in Node (scope of parent comment), but it's rather different from other more common concurrent event handling schemes. I.e., you cannot have shared mutable variables across threads (scope of article and ongoing async discussion). For examples, see https://npmjs.org/package/webworker-threads https://npmjs.org/package/webworker-threads and https://github.com/cramforce/node-worker https://github.com/cramforce/node-worker.
- thedufer 13y agoFascinating. I didn't know that webworkers were available in node.js. I stand corrected, then.