Why Node.js is single threaded?

Node.js uses a single-threaded model in order to support async processing. 

With async processing, an application can perform better and is more scalable under web loads. 
Thus, Node.js makes use of a single-threaded model approach rather than typical thread-based implementation.

Comments

Popular posts from this blog

What is an Event loop in Node.js and how does it work?

What is promise, promise.all and promise.race? How do you chain promises?