• Register
Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

Why is Node.js Single-threaded

0 votes
11 views
Why is Node.js Single-threaded?
asked Aug 15 in Node.js by Pavneet kohli

1 Answer

0 votes
Node.js is single threaded for asynchronous processing. Doing async processing on a single thread could provide more performance and scalability under typical web loads than the typical thread-based implementation.

Long story short, node draws from V8, which is internally single-threaded. There are ways to work around the constraints for CPU-intensive tasks. Node.js relies on event-driven programming where flow of execution is determined by the events.
answered Nov 11 by Developerhelpway (1,000 points)
...