readcopyupdate
Read-Copy-Update, commonly abbreviated as RCU, is a synchronization mechanism used in concurrent systems to optimize read-mostly data access. It enables multiple readers to access shared data without taking locks, while writers update the data by creating a new version and then switching pointers to the new version. The old version remains accessible to readers until it is guaranteed that no reader can still access it, at which point the memory can be reclaimed. This guarantee is provided by a grace period and callbacks that reclaim memory after that period.
In typical RCU operation, readers access data in a read-side critical section that is lightweight and non-blocking.
RCU is widely used in operating system kernels and other high-performance systems where read operations greatly