Sign inSign in
ConceptSystems & CS

Compare-and-swap

An atomic hardware instruction that compares the contents of a memory location with a given value and, only if they are the same, modifies the memory location to a new given value.
as Frans Kaashoek defines itMITThe wording closest to all 5 definitions
Watch it explained

Know first

Named as a prerequisite by the lectures that define this. The number is how many say so. A grey one has no page yet.

Opens up

Concepts that name this one as a prerequisite.

Lecturers

5

Each in their own terms, from the easiest level.

  • Martin Kleppmann

    University of Cambridge · Undergraduate

    An atomic operation that sets a variable to a new value if and only if its current value equals a specified old value.
  • Andy Pavlo

    Carnegie Mellon University · Undergraduate

    An atomic instruction that compares a memory location's value to a given value and updates it to a new value only if they match.
    • 24:44Index Concurrency Control
  • Charles Leiserson

    MIT · Undergraduate

    An atomic operation that compares the contents of a memory location to a given value and, only if they are the same, modifies the memory location to a given new value.
    • 1:07:24Synchronization Without Locks
  • Robert Morris

    MIT · Graduate

    An atomic instruction used by the primary to check a version number and set a lock bit simultaneously.
    • 55:29Optimistic Concurrency Control

Lectures that assume it

1

Connections

14

The lectures that define it or assume it, and the concepts next to it.

Concepts8

Show 2 more

Lectures6

5 lecturers. Definitions are written by AI from each lecture’s transcript. A time with a play mark starts the lecture at the moment the lecturer says it.