SPSC queue
A queue with exactly one writer and exactly one reader, which lets it be built with no locks at all — the classic link between an interrupt handler and the main loop.
The trick is ownership. The producer alone writes the write index, the consumer alone writes the read index, and each only reads the other's. No variable has two writers, so there is nothing to lock. Leslie Lamport showed in 1983 that such a queue is correct without mutual exclusion; in practice it is almost always a ring buffer with a power-of-two size, so the indices can be masked instead of taken modulo.
In firmware the UART interrupt fills the queue and the main loop drains it, with interrupts never disabled. What it does require is that indices are written atomically and in the right order — data first, index second — which on multicore systems means a memory fence. Linux's kfifo rests on the same promise, and adding a second producer breaks everything without a sound.