Advertisement
rubiin

event loop

May 14th, 2024 (edited)
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. https://amplication.com/blog/nodejs-development-all-you-need-to-know
  2. https://blog.risingstack.com/node-js-at-scale-understanding-node-js-event-loop/
  3. https://blog.logrocket.com/complete-guide-node-js-event-loop/
  4.  
  5. Event loop
  6. Js is single threaded language so it can only execute one thing at a time.
  7. Although Node.js is single-threaded, it uses an event-driven, non-blocking I/O model to handle multiple requests simultaneously without blocking others. This behavior is achieved through the event loop. event loop is a continuously running, semi-infinite loop which runs until the nodejs application is running
  8.  
  9.  
  10. parts of event loop
  11.  
  12. Call Stack: The call stack keeps track of all the functions that are currently being executed. When a function is called, it's added to the top of the call stack, and when it returns, it's removed from the stack.
  13.  
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement