1. 4.1 Compare-and-Swap (CAS)historical

    Compare-and-Swap (CAS): CAS (Compare-and-Swap) is an atomic operation: compare the current value in memory with an expected value, and replace it with a new value only when they match.

  2. 4.2 Lock-Free Queuehistorical

    A Lock-Free Queue is a thread-safe queue implemented with lock-free techniques, usually relying on CAS and other atomic operations to coordinate concurrent updates.