3 ms·
Node takes advantage of multiple cores. The code is all async by default and that is easy to load onto green threads. This used to be implemented with callbac
by kohtatsu 6y ago
Node takes advantage of multiple cores.
The code is all async by default and that is easy to load onto green threads.
This used to be implemented with callback hell, now it's Promises which is actually really cosy (and what Rust is adopting).
Random article I found on it: https://medium.com/better-programming/is-node-js-really-single-threaded-7ea59bcc8d64 https://medium.com/better-programming/is-node-js-really-sing...