2 ms·
But nodejs network, last time I checked, ran on one thread. Opening sockets doesn't run in vacuum. What you said may be true for multithreaded apps, but resou
by quickben 10y ago
But nodejs network, last time I checked, ran on one thread. Opening sockets doesn't run in vacuum.
What you said may be true for multithreaded apps, but resources are shared in nodejs.
- coldtea 10y ago>But nodejs network, last time I checked, ran on one thread. It can multiplex operations at the event level however, and all its common libs follow that model. So while it might run "on one thread" it can leverage the CPU quite efficiently. And you can always run multiple processes.