GGautam Patel·Nov 14Compare-and-Swap (CAS): Understanding Atomic Operations in Concurrent ProgrammingUnderstand how Compare-and-Swap (CAS) works, prevents race conditions, and enables atomic updates in concurrent programming.9 min read·iamgautam.hashnode.dev
AAbstract Algorithms·Apr 17Compare-and-Swap and Optimistic Locking: How Every Database Implements ItFrom the CMPXCHG CPU instruction to DynamoDB ConditionExpressions and Cassandra LWT — how CAS and optimistic locking work across every major database.34 min read·abstractalgorithms.hashnode.dev
CChetan Datta·Jul 9, 202427 Java - Multithreading 4 (Atomic Variables)Concurrency Types Concurrency can be achieved using 2 ways Lock based Mechanism Synchronized Reentrant Stamped ReadWrite Semaphores Lock Free Mechanism CAS Operation (Compare-and Swap) AtomicInteger AtomicBoolean AtomicLong AtomicReference...6 min read·chetan77.hashnode.dev