As we know that , Node js is a single threaded application but it also support concurrency based on concept of event and callbacks.
Every api that we are doing using node.js are asynchronous and single thread,node js uses asynchronous function calls to maintain the concurrency.
Every node thread holds the event loop and whenever any task get finished means completed, at that time it fires the corresponding event which alert the event listener function to get execute.
This way event loop process on node js.
0 Comment(s)