Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wslh
on Aug 18, 2015
|
parent
|
context
|
favorite
| on:
Explaining the browser's event loop, tasks, and mi...
I think this is something that nodejs should include by default (multithreaded workers).
jaffathecake
on Aug 18, 2015
[–]
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
wslh
on Aug 18, 2015
|
parent
[–]
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: