Question d’entretien chez Globant

How does Node handle multiple threads?

Réponse à la question d'entretien

Utilisateur anonyme

1 juin 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.