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 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 min
Article 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 min
Article 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 min
Article 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 minPage 1 of 2