VVinayak Sharma16h ago · 43 min readConcurrency and Multithreading in JavaSynchronization Basics in Java Process A Process is a self-contained execution environment with its own memory space and resources. Two Processes do not share memory directly they communicate through itsvinayak.hashnode.dev
GGowtham Muthuvel1d ago · 18 min readReplacing ThreadLocal with ScopedValue for Request IDs (Java 25)Here's a log line from the demo in this post. Request #3 came in without an X-Request-Id header, yet it was logged with the ID of a different request: http-nio-1 requestId=req-A handling requesgowthammuthuvel.hashnode.dev
TThinkerQAQ1d ago · 6 min readConcurrency Programming (5): Atomics — Atomicity, Visibility, and Ordering at the Language LevelTable of Contents 0. Continue from the Previous Article 1. What Guarantees Do the Atomic Rules in Each Language Provide? 1.1 Java: AtomicInteger 1.2 Go: sync/atomic 1.3 CPython: No Symmetric Applicatthinkerqaq.hashnode.dev
WWeiping LarryDing2d ago · 13 min readGo Concurrency Under the Hood - GoroutinesWhen you first start with Go from the Node.js world, all the cool async I/O with an event loop seems to be missing. You just write this "I/O blocking" code exactly like a synchronous procedure call: qwpding.hashnode.dev
HHamed Yousefi2d ago · 16 min readActors in Production: How Discord, LinkedIn and Halo Use the Actor ModelThe actor model is easy to describe: small units that own their state, handle one message at a time, and talk only by messages. If you haven't met it yet, my previous article covers where it came fromhmdsefi.hashnode.dev
GGowtham Muthuvel3d ago · 9 min readVirtual Thread Pinning in Java 25: What Still Pins After JEP 491In Java 21, virtual threads had one well-known catch: block inside a synchronized block and the virtual thread gets pinned to its carrier thread. That carrier, which is a real OS thread, can't run anygowthammuthuvel.hashnode.dev
TThinkerQAQ3d ago · 11 min readConcurrency Programming (4): How Mutexes Are Implemented — From Runtime to CPUTable of Contents 0. What Does This Article Answer Next? 1. How Does HotSpot Implement synchronized? 1.1 Layers 1.2 End-to-End Implementation Path for synchronized 1.3 Guarantees at the Runtime / Lanthinkerqaq.hashnode.dev
HHamed Yousefi4d ago · 15 min readThe Actor Model: Why It Was Invented and How It WorksIf you have written concurrent code with threads, you know the routine. Several threads touch the same data, so you put a lock around it. Then you add a second lock, take the two in the wrong order onhmdsefi.hashnode.dev
VVishal Raghav5d ago · 6 min readPython Multithreading vs MultiprocessingWhen we add threads to a Python script, we expect it to run faster. Most of the time, it runs at the exact same speed. Textbooks and YouTube tutorials make Processes, Threads, and the GIL sound way mo32AYvishalraghav.hashnode.dev
TThinkerQAQ4d ago · 7 min readConcurrency Programming (3): Mutexes — Atomicity, Visibility, and Ordering at the Language LevelTable of Contents 0. Continue from the Previous Article 1. What Guarantees Do the Lock Rules in Each Language Provide? 1.1 Java: synchronized and Monitors 1.2 Go: sync.Mutex 1.3 CPython: threading.Lothinkerqaq.hashnode.dev