Google News
logo
Full Stack Developer - Interview Questions
What is the Event Loop?
Node.js is a single-threaded application but it supports concurrency via the concept of event and callbacks. As every API of Node js is asynchronous and a single thread, it uses async function calls to maintain the concurrency. Node uses an observer pattern. Node thread keeps an event loop and whenever any task gets completed, it fires the corresponding event which signals the event listener function to get executed.
Advertisement