#28 Event Loop in NODE JS | Fundamentals of NODE JS | A Complete NODE JS Course
HTML-код
- Опубликовано: 16 окт 2024
- In this lecture, let's understand a very important concept of NODE JS, which is its event loop. A event loop is responsible for executing the callback functions attached to an asynchronous task, by pushing it to the main thread for its execution.
Source code GIT Repo: github.com/man...
you're the first guy on YT who explain this nodejs architecture and behind the scenes in depth . Respect++
this kind of explanation deserves views in millions. The detailed explanation that most of the videos around this topic lack.
Thanks for your explanation. Great content.
U r gem to the JavaScript community , keep going on!
Well explained. It's crystal clear, and for the first time, I am understanding these concepts with more clarity. I am so glad that I came across your channel. I have watched your other JS, React, and Angular contents all are really amazing. Thanks a ton for such incredible effort👏
your explanation is awesome, Thank you, I am watching your Node.js & Angular videos they are the best videos on RUclips platform
Bro you're a legend,
No word to describe you
Your explanation is amazing and easy to understand. However, my question is, if call back functions with complex tasks will be pushed from event loop to thread poll till it's ready for execution how then will it block the main thread as it appeared in your guides to avoid blocking the main thread? If my question is erroneous due to unwholly understanding, do correct me. Once again, your explanation is perfect.
Super clear. Thank you
Great explanation
Good Work, really helped!!
One request, could you attach a pdf of contents or notes, that would be really helpful.
best explanation in youtube
You're amazing brother, your content is star!
really thanks so much
i have question: how `timers` gets executed in thread pool? it is not heavy tasks!
is that means all asynchronous code will be executed in thread pool?
Timer functions are asynchronous functions. So yes, they will be executed in a threadpool. It does not matter if an asynchronous code is doing some heavy task or light task. All asynchronous code in Node will be executed in a threadpool.
@@procademy but the callback that we pass inside setTimeOut() will be executed in the main thread after timer expires and if that callback again doing some heavy work then it should not block our main thread. it should be async code and executed in thread pool. when timer of setTimeoOut expires then the callback attached to it will be sent to event loop from the thread pool for inserting it into the callback queue related to Timers. Am i going correct sir?
first of all great video, exactly what i was looking for.
i do want to ask
equest if you can explain or give an example in the video for promises and also async wait from the libuv & main thread perspective, i think it can be really helpful.
you need research about micro and macro tasks of event loop to answer your questions
Hi please can you also explain about event queue in this architecture
well explained
❤❤❤
Kindly share notes or ppt
they are not your own words. u get them completly from another where