Slide 11
Slide 11 text
Intro: Typical RCU workflow
● Writer makes a copy of data and modifies it.
● Readers execute in parallel on unmodified data.
● To know all prior readers are done, writer:
○ commit the modified copy (pointer)
○ Waits for a grace period.
○ After the wait, destroy old data.
○ Writer’s wait marks the start of a grace period.
● Quiescent state (QS) concept - a state that the CPU passes through which signifies
that the CPU is no longer in a read side critical section (tick, context switch, idle
loop, use code, etc).
○ All CPUs must report passage through a QS.
○ Once all CPUs are accounted for, the grace period can end.