Skip to content

Instantly share code, notes, and snippets.

View peterhughesdev's full-sized avatar

Peter Hughes peterhughesdev

View GitHub Profile

This is a proof-of-concept of a couple of concurrent data structures written in Ruby.

The implementations are heavily commented for those interested. There are benchmarks (with results) included below. The results are interesting, but, as always, take with a grain of salt.

Data structures

AtomicLinkedQueue is a lock-free queue, built on atomic CAS operations.