3 ms·
That's not what the post is about, it covers actions scheduled on a single thread. However, you can do multi-process, therefore mutli-thread with node, using ht
by jaffathecake 11y ago
That's not what the post is about, it covers actions scheduled on a single thread. However, you can do multi-process, therefore mutli-thread with node, using https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options https://nodejs.org/api/child_process.html#child_process_chil... or https://nodejs.org/api/cluster.html https://nodejs.org/api/cluster.html
- wslh 11y agoI know it is not related with NodeJS but I would like to have it with Node. The cluster model is inefficient since it uses processes instead of threads. One unofficial answer for NodeJS is https://www.npmjs.com/package/webworker-threads https://www.npmjs.com/package/webworker-threads