Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

load-linked/store-conditional

A pair of instructions for atomic updates: the load marks the address, and the store succeeds only if nobody else wrote it in between; otherwise the code tries again.

Load-linked/store-conditional splits an atomic read-modify-write into a load that sets a reservation on an address (ARM64 ldxr/ldaxr, RISC-V lr.w/lr.d) and a store that succeeds only if the reservation is intact, writing a status register (ARM64 stxr: 0 success; RISC-V sc: 0 success); a failed store-conditional is retried.

Read the full section →