Node.js Question:

Download Job Interview Questions and Answers PDF

Is Node.js on multi-core machines?

Node.js Interview Question
Node.js Interview Question

Answer:

Yes, Node.js is one-thread-per-process. This is a very deliberate design decision and eliminates the need to deal with locking semantics. If you don't agree with this, you probably don't yet realize just how insanely hard it is to debug multi-threaded code. For a deeper explanation of the Node.js process model and why it works this way (and why it will NEVER support multiple threads), read my other post.

Download Node.js Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me what is the purpose of Node.js module.exports and how do you use it?Tell me how to decide when to use Node.js?