Articles tagged with #Concurrency
A curated list of engineering series, deep dives, and notes related to #Concurrency.
Java Specialized Queues: SynchronousQueue Handoffs & DelayQueue Expiration
Master Java SynchronousQueue and DelayQueue internals. Learn zero-capacity thread handoffs and how Delayed Min-Heaps power task schedulers.
Lock-Free Sorted Range Queries: ConcurrentSkipListMap & SkipLists in Java
Learn how ConcurrentSkipListMap uses SkipLists and atomic CAS pointers to deliver lock-free sorted range queries across 64+ CPU cores in Java.
Java BlockingQueue Performance: ArrayBlockingQueue vs LinkedBlockingQueue
Compare ArrayBlockingQueue vs LinkedBlockingQueue in Java. Learn how dual-lock splitting eliminates contention in multi-threaded task queues.
Java ConcurrentHashMap Internals: Lock-Free CAS & Fine-Grained Bucket Sync
Deep dive into Java 8+ ConcurrentHashMap internals. Learn how lock-free CAS, volatile reads, and bucket-level synchronized locks handle high concurrency.
Java Concurrent Collections: CopyOnWriteArrayList vs Unmodifiable vs List.of()
Compare Fail-Fast vs Fail-Safe collections in Java. Learn CopyOnWriteArrayList memory mechanics and the difference between List.of() and unmodifiable wrappers.
Multi-Version Concurrency Control (MVCC): How Non-Blocking Snapshot Reads Work
Learn how modern databases like MySQL InnoDB implement Multi-Version Concurrency Control (MVCC) to achieve non-blocking snapshot reads using DB_TRX_ID and roll pointers.
Database Concurrency Anomalies: Dirty Reads, Non-Repeatable Reads, Phantoms & Lost Updates
Explore database concurrency anomalies including dirty reads, non-repeatable reads, phantom reads, and lost updates, with interleaved transaction timelines.
Why Files Fail as Databases: Concurrent Access, Update Anomalies & Crash Recovery
Discover why storing application data inside flat CSV or JSON files leads to race conditions, lost updates, corrupted data on crash, and performance failure.