event loop
-
Single Thread, Event Loop, and Blocking CodeFramework/Node.js 2020. 2. 21. 21:16
1. Overview 1.1 Event Loop The event loop is automatically started by node.js when your program starts. This is responsible for handling event callbacks though. The event loop is responsible for basically running that code when a certain event occurs you could say, it's aware of all these callbacks and basically well, execute said code. It's important to understand that this operation is not han..
-
The Internals of Node.jsFramework/Node.js 2020. 2. 21. 14:33
1. Overview Node.js is an open-source, cross-platform, JavaScript library that executes JavaScript code outside of a browser. Node.js lets developers use JavaScript to write command-line tools and for server-side scripting—running scripts server-side to produce dynamic web page content before the page is sent to the user's web browser. Consequently, Node.js represents a "JavaScript everywhere" p..
-
Event Loop, Execution Stack, Web APIs, and Message QueueDynamicPL/Javascript 2019. 10. 23. 01:49
1. Overview Clarify the difference between synchronous and asynchronous in JavaScript. And see How these things to work deeply with Event Loop, Execution Stack, WEB APIs, and Message Queue. 2. Description 2.1 Synchronous One statement is processed after the other, line by line in a single thread in the JavaScript engine 2.2 Asynchronous Allow asynchronous functions to run in the background We pa..