4 ms·
> there's two tail My point about the sync part w/ the producers, the consumers won't be ready to read from the producers before it's ready. However another op
by xxs 4y ago
> there's two tail
My point about the sync part w/ the producers, the consumers won't be ready to read from the producers before it's ready. However another option would NOT using a contention point of a shared tail but marking each record as done - need write/write memory fence, so even if the consumers start reading, then can bail out if the write process has not committed.
> the buffer freely before that point, though, so in practice it's not a contention point.
Likely a false sharing between the producers, unless the impl. is careful enough to allocate cache-line sized records.