6 ms·
Is node actually able to use more than one core now?
by fforw 14y ago
Is node actually able to use more than one core now?
- DonPellegrino 14y agoIt has been able to for a while! Check out the cluster module, processes listening to the same port are load balanced and communication between processes is obviously (since each process only has 1 thread due to the event loop) done by message passing.
- kaoD 14y agoTechnically spakeaing: no, and it never will. Single-threading is by design, so the best bet is to run several processes, each using one core (see the other answer to your comment).