Darshit Anjariadarshitanjaria.hashnode.dev·Oct 28, 2024How JavaScript Handles Concurrent Requests Despite Being Single-Threaded: The Magic Behind the ScenesIntroduction JavaScript is known as a single-threaded language, meaning it can only execute one task at a time. However, despite this limitation, JavaScript can handle multiple asynchronous operations efficiently, such as fetching data from an API or...DiscussJavaScript
Bhupendrabhuppi.hashnode.dev·Oct 23, 2024How asynchronous code is executed in JavaScriptIn JavaScript, asynchronous code is handled using the event loop, which allows non-blocking execution. JavaScript is single-threaded, meaning it can only perform one task at a time. However, it can handle asynchronous tasks efficiently without blocki...DiscussJavaScript
RIMANSHU SINGHforme.hashnode.dev·Oct 19, 2024Exploring Event Loops: Key Concepts ExplainedBefore understanding the event loop, you need to know how a browser works and how JavaScript code runs inside it. Let’s dive deep into this. To execute JavaScript code inside the browser, a browser needs an engine, similar to how other programming la...Discuss·2 likesJavaScript
Vishal Raivishalraisde.hashnode.dev·Oct 19, 2024How Javascript Event Loop workIn JavaScript, the execution context and the event loop determine how code, particularly asynchronous code, gets executed. The example provided involves asynchronous behavior (with setTimeout and Promise). Let's break it down step by step, explaining...DiscussEvent Loop
Aniket MahangareforAniket's Tech Journalaniketmahangare.hashnode.dev·Oct 14, 2024Implementing Event Loops in Go: A Practical ApproachEver wondered how single threaded applications, like Redis, are able to handle thousands of clients concurrently (“perceived” concurrency)? The answer is “Event Loops“. In this article, we will dive deep into how event loops work & their implementati...Discuss·115 readsEvent Loop
Anish Agrawalanish29801.hashnode.dev·Oct 11, 2024Understanding the Event Loop in JavaScriptJavaScript is known for being a single-threaded, non-blocking, asynchronous programming language. But how does JavaScript manage to handle multiple tasks simultaneously, despite having only one call stack? The secret lies in the event loop. The event...DiscussJavaScript
Vishal Sharmacodreline.hashnode.dev·Oct 9, 2024Let's Dive into Internal Working of Node.jsHave you ever wondered how Node.js can handle thousands of connections at once without breaking a sweat? As a popular choice for building scalable network applications, Node.js has revolutionized the way developers approach server-side programming. A...Discuss·10 likesNode.js
Faisal Ahmedspaghetti-coder.com·Oct 8, 2024Building Async I/O in Rust: How Futures, Wakers, and Thread Pools Work TogetherAsynchronous I/O in Rust is a powerful technique that allows programs to perform non-blocking operations, enabling efficient multitasking and improved performance, especially in I/O-bound applications. By using the async and await keywords, Rust can ...Discuss·3.2K readsAsync Rust
Dwiki Arlancerita.hashnode.dev·Oct 4, 2024Task Queue vs Microtask Queue: Memahami Urutan Eksekusi JavascriptPernah merasa bingung mengapa setTimeout tidak langsung dieksekusi meskipun sudah dipanggil dengan timeout=0? Atau mungkin kamu sering menggunakan Promise tetapi belum sepenuhnya memahami bagaimana JavaScript menangani operasi seperti ini? Di JavaScr...DiscussJavaScript
Pradeep Thapapradeepwrites.hashnode.dev·Sep 28, 2024Understanding the Event Loop: The Hidden Mechanism Behind JavaScript's MagicJavaScript is often described as a single-threaded language, but it manages to handle tasks like fetching data from servers, updating the UI, and responding to user events seamlessly without blocking or freezing. This is made possible by a magical co...DiscussJavaScript