Keywords: perfbook_html

#### 10.3.2.1.7 Comparison of Reader-Writer Locking and RCU Code

In the best case, the conversion from reader-writer locking to RCU is quite simple, as shown in Figures , , and , all taken from Wikipedia [MPA+06].

Figure: Converting Reader-Writer Locking to RCU: Data

Figure: Converting Reader-Writer Locking to RCU: Search

Figure: Converting Reader-Writer Locking to RCU: Deletion

More-elaborate cases of replacing reader-writer locking with RCU are beyond the scope of this document.