4 ms·
I’m guessing the fact that node is single threaded
by barefeg 6y ago
I’m guessing the fact that node is single threaded
- nobleach 6y agoJavaScript is single threaded, Node is most certainly not.
- gbrits 6y agoYes it surely is
- zbentley 6y agoMy "htop" display surely disagrees. So do my node programs that lag out waiting for disk IO thread pool slots. Sounds does node's documentation: https://nodejs.org/api/worker_threads.html https://nodejs.org/api/worker_threads.html
- hmcdona1 6y agoIt's not exactly. Certain operations like I/O are threaded in Node. libuv has it's own threadpool that it uses for a lot of these types of tasks.
- jayflux 6y agoNode uses a thread pool for tasks like reading files async and crypto operations etc, you can read about it here https://nodejs.org/en/docs/guides/dont-block-the-event-loop/ https://nodejs.org/en/docs/guides/dont-block-the-event-loop/