DEV Community

Discussion on: Difference between the Event Loop in Browser and Node Js?

Collapse
 
dhanushnehru profile image
Dhanush N

Well explained πŸ™‚

Adding on

In a browser when you open a page in a tab, you actually create a process in which there can be multiple threads, such as js engine, page rendering, HTTP request threads and many more. Whereas in nodejs you initiate a request, you actually create a thread that may be destroyed when the request is completed.

Collapse
 
jasmin profile image
Jasmin Virdi

Thanks for adding up☺️

Do you mind if I add this to the difference list in the post?

Collapse
 
dhanushnehru profile image
Dhanush N

Yeah, you can add πŸ™‚

Collapse
 
cokacode profile image
Comment marked as low quality/non-constructive by the community. View Code of Conduct
theoldman • Edited

what can you even say to a person, who is writing article about event loop and at the same time agreeing with some stupid person who thinks node js creates a thread for every request. WOW, I have no words, the first line of the documentation of the Node JS says node js is single threaded..

Thread Thread
 
jasmin profile image
Jasmin Virdi • Edited

Hey,

Thanks for pointing that out. It was incomplete as information and must have created confusion among the readers regarding the concept. I have updated the context. πŸ™ŒπŸΌ πŸ™‚

Friendly advice: While pointing out issues in someone's article we can try using polite language instead of calling someone stupid or making fun of them. It is really discouraging for people out there writing articles and others who are sharing their feedback.

This is platform where everyone is sharing their learnings and mistakes are bound to happen for which I apologise. We as developers should help each other by providing valuable feedback in a better way and make this community a better place. πŸ™‚