Home/Learn/Concurrency
Topic

Concurrency

Learn Concurrency as a connected topic across chapters, concepts, simulations, and interview reasoning.

10 Concepts12 Articles4h 40m

Overview

Learn Concurrency as a connected topic across chapters, concepts, simulations, and interview reasoning.

How this topic helps

Databases
Distributed Systems
System Design
Transactions

Learning Path in this Topic

Series that contain articles from Concurrency. Select a path to filter the article list.

Articles

12 matched articles

Article 1Async Python: asyncio, Coroutines, and Event Loops Without the Confusion📖 The 500-Second Problem: What Cooperative Multitasking Actually Fixes Suppose your monitoring pipeline checks the health endpoint of 1,000 internal microservices. Each HTTP call takes about 500 mill27 minArticle 2Compare-and-Swap and Optimistic Locking: How Every Database Implements ItTLDR: Compare-and-Swap (CAS) is the CPU-level atomic instruction that makes lock-free concurrency possible. Optimistic locking builds on it at the database layer: read freely, compute locally, write o34 minArticle 3Dirty Write Explained: When Uncommitted Data Gets OverwrittenTLDR: A dirty write occurs when Transaction B overwrites data that Transaction A has written but not yet committed. The result is not a rollback or an error — it is silently inconsistent committed dat28 minArticle 4Lost Update Explained: When Two Writes Become OneTLDR: A lost update occurs when two concurrent read-modify-write transactions both read the same committed value, both compute a new value from it, and both write back — with the second write silently38 minArticle 5Adapting to Virtual Threads for Spring DevelopersTLDR: Platform threads (one OS thread per request) max out at a few hundred concurrent I/O-bound requests. Virtual threads (JDK 21+) allow millions — with zero I/O-blocking cost. Spring Boot 3.2 enabl18 minArticle 6LLD for Movie Booking System: Designing BookMyShowTLDR TLDR: A Movie Booking System (like BookMyShow) is an inventory management problem with an expiry: seats expire when the show starts. The core engineering challenge is preventing double-booking u25 min

Page 1 of 2