~/talk

Intro to Concurrent Programming 1/3: Classic Stack and Queue Algorithms

Talkat Hydra 2022 · 2022-06-02..06-26· [concurrency]
links:none on file
slides:none on file

Covers lock-free implementations of a linked-list stack and the Michael-Scott queue, using CAS-based push/pop loops, the universal-copy-on-write construction for conceptual lock-freedom, and a dummy head node with separate head/tail pointers for the queue. Shows how failing CAS implies system-wide progress, explains helping (one thread advancing tail for another), and notes practical tradeoffs such as lack of wait-freedom and the common optimization of volatile reads versus extra CAS.

AI-written summary · about

  1. 0:00Concurrent programming intro
  2. 4:21Locks and coarse sync
  3. 10:00Lock-free counter with CAS
  4. 19:03Lock-free stack algorithm
  5. 28:54Correctness in concurrent data structures
  6. 37:35Top operation and wait-free
  7. 40:30Michael-Scott queue overview
  8. 57:35Summary and assignments
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.