News for hackers. Stuff that matters.
Re:Seqlock-Based Atomic Memory Snapshots by slashdev on Saturday August 26, 2023 @07:51PM (#37277986)
You can’t do that without a mutex. This provides a way to read a consistent snapshot of multiple atomic values without a mutex.

Obviously you could just use a mutex. This may perform better under some workloads, especially if writes are very rare.

There are no comments on this comment yet.