Hacker News new | past | comments | ask | show | jobs | submit login

I think this is something that nodejs should include by default (multithreaded workers).



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


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: