DPDhawal Pandyaindhawalpandya01.hashnode.dev·Jun 8 · 7 min readIt Was supposed to be a Browser Language"Any application that can be written in JavaScript, will eventually be written in JavaScript." Jeff Atwood In 2009, Ryan Dahl watched a progress bar on a Flickr page and had a realization that annoye10
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
AKAshutosh Krishnainblog.ashutoshkrris.in·May 31 · 16 min readPython Threading vs Multiprocessing vs Asyncio: When to Use EachImagine you are building a feature that needs to fetch data from 100 different API endpoints. You write a clean, simple loop in Python to call each endpoint one after the other. Each request takes exa10
RARuhit Armaninarmanruhit.hashnode.dev·May 28 · 12 min readLazy Singletons in Java: Why Double-Checked Locking Needs "volatile", and the Better Alternative That Doesn'tIf you've ever read about the singleton pattern in Java, you've almost certainly run into the phrase "double-checked locking," usually followed immediately by a stern warning: don't forget the volatil00
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
YPYejun Parkinyejunpark3.hashnode.dev·May 12 · 10 min readWhen Threads Collide: A Deep Dive into Classical Synchronization Problems and Concurrency BugsConcurrency is one of those topics that feels deceptively simple until it bites you at 3 AM. You've got multiple threads, they share some data, and suddenly your application freezes, produces garbage 00
YPYejun Parkinyejunpark3.hashnode.dev·May 7 · 8 min readDeadlocks, Dining Philosophers, and the Art of Keeping Threads from Tearing Each Other ApartIf you've ever watched two people in a narrow hallway politely stepping left and right in perfect unison, never actually getting past each other — congratulations, you've witnessed a human deadlock. N00
PZPrajwal Zoreinunder-the-hood.hashnode.dev·Apr 27 · 3 min readI Thought My malloc Was Thread-Safe — I was wrongI recently built a custom memory allocator in C. What started as a learning exercise turned into something deeper when I tried to make it thread-safe. At one point everything looked right: locks in pl10
SRSaurabh Ravteinsaurabh-ravte.hashnode.dev·Apr 23 · 4 min readHow Node.js Handles Multiple Requests with a Single Thread** One thread — really?** Most web servers spawn a new thread (or process) for every incoming request. Node.js doesn't. It runs your JavaScript on a single thread one at a time, no parallel execution.00
MKMohit Kumarinimohit1o1.hashnode.dev·Apr 22 · 3 min readHow Node.js Handles Multiple Requests with a Single ThreadThe Core Confusion Node.js is single-threaded. But in real applications: thousands of users send requests at the same time APIs respond quickly system does not block So the question is: How does 11T