News for hackers. Stuff that matters.
Re:Explaining the browser's event loop, tasks, and microtasks by wslh on Monday August 17, 2015 @08:11PM (#10076917)
I think this is something that nodejs should include by default (multithreaded workers).
Re:Explaining the browser's event loop, tasks, and microtasks by jaffathecake on Tuesday August 18, 2015 @05:21AM (#10078212)
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_chil... or https://nodejs.org/api/cluster.html
Re:Explaining the browser's event loop, tasks, and microtasks by wslh on Tuesday August 18, 2015 @08:23AM (#10078782)
I 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