IT lexicon › Programming › Concurrent queue

Concurrent queue

Programming På svenska → Updated: 2026-11-16

A queue where multiple threads can insert and remove elements simultaneously without locks or data corruption.

A regular queue uses internal locks to prevent race conditions when multiple threads read and write concurrently. A concurrent queue uses lock-free algorithms—typically based on compare-and-swap—to allow higher parallelism. Each thread can often work on its own section of the queue without disturbing others.

Concurrent queues are central to the producer-consumer pattern and work-stealing schedulers. Java's ConcurrentLinkedQueue and Rust's crossbeam channels are modern implementations. Without them, multi-threaded architecture becomes either unsafe or inefficient.

← Back to the lexicon