DPDhawal Pandyaindhawalpandya01.hashnode.dev·Jun 7 · 8 min readWaiting Is a Skill"Nature does not hurry, yet everything is accomplished." Lao Tzu A mutex, short for mutual exclusion, is a lock that only one thread can hold at a time. If thread A holds it, thread B waits. A simple00
DPDhawal Pandyaindhawalpandya01.hashnode.dev·Jun 6 · 8 min readA Million Concurrent Things"Concurrency is not parallelism." Rob Pike Go lets you write this: go doSomething() One word. That is all it takes to spin up a concurrent unit of execution. You can do this a hundred thousand times10
AAugustineincloudpen-blogs.hashnode.dev·Jun 3 · 2 min readI built a real PTY terminal that runs in the browser — here's how and whyIf you've used other browser-based code editors, you've probably noticed that the terminal feels off. You can run a script. You can print to stdout. But the moment you try to install a package and the00
SKSreeram K Sincode-as-a-story.hashnode.dev·May 26 · 6 min readProcesses vs Threads — Explained SimplyStory Time Let's get started with a simple story. Imagine you walk into a busy food court like the ones you see in malls. There are multiple restaurants inside a pizza shop, a burger joint, a coffee b00
NPNikhil Prasharinnikhilprashar.hashnode.dev·May 10 · 4 min readHow Node.js Handle Multiple Requests with a Single Threads.Single-threaded nature of Node.js . Before understanding the single-threaded nature of Node.js, first understand what a thread means. A thread is basically a path of execution where code runs and task00
NFNausheen Faiyazincodexninja.hashnode.dev·May 9 · 7 min readHow Node.js Handles Multiple Requests with a Single ThreadThe first time I learned this: “Node.js is single-threaded”…I immediately thought:“Then how does it handle thousands of users?” Because in my head… single-threaded meant: One task at a time So natura00
RTRochak Tiwariinunderstandingwebdevelopment.hashnode.dev·May 8 · 9 min readHow Node.js Handles Multiple Requests with a Single ThreadIntroduction to Node.js Concurrency One of the first things developers hear about Node.js is that it is single-threaded. At first, this sounds confusing. If Node.js uses only one thread, how can it ha00
SMSiddhartha Mohapatrainnode-multiple-request.hashnode.dev·May 8 · 6 min readHow Node.js Handles Multiple Requests with a Single ThreadNode.js is commonly described as “single-threaded.” Many developers assume that a single thread can only handle one request at a time, making it unsuitable for modern web applications with thousands o00
Sshaileshinnodejs-single-thread-sspadwal.hashnode.dev·May 8 · 5 min readHow Node.js Handles Multiple Requests with a Single ThreadOne of the most confusing things beginners hear about Node.js is this: Node.js is single-threaded, but it can handle thousands of requests. At first, this sounds impossible.A common question is: “If00
SSSubransu Sekhar Maharanainwebfundamentals.hashnode.dev·May 7 · 7 min readHow Node.js Handles Multiple Requests with a Single ThreadModern web applications often need to handle thousands of users at the same time. When developers first hear that Node.js is single-threaded, the immediate question is: “If Node.js uses only one thre00