IT lexicon › Programming › Grace period

Grace period

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

A time window after which all readers that could have accessed an old version are guaranteed to have finished, making it safe to reclaim that data.

In RCU and similar update patterns, you need a way to know when it's safe to free an old value. A grace period is the time it takes from an update until it's certain all threads that could have read the old value have passed a synchronization point (quiescent state). After a grace period, it's safe to free memory.

Grace periods are the conceptual basis for both RCU and epoch-based reclamation. A short grace period allows fast memory reclamation but requires tight thread tracking. Modern Linux RCU implementations are sophisticated balances of these tradeoffs, dynamically adjusting grace period length based on system state.

← Back to the lexicon