Pregunta de entrevista de Globant

How does Node handle multiple threads?

Respuesta de la entrevista

Anónimo

1 de jun de 2016

This is a tricky one. Javascript is a single-threaded language. Meaning it can only do one thing at a time. However, we do have the event loop, callback queue, and the call stack, which we can use to do our async work. In Node we also have the ChildProcess module which can spawn other processes.