Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Read-copy-update
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Synchronization mechanism}} In [[computer science]], '''read-copy-update''' ('''RCU''') is a [[synchronization (computer science)|synchronization]] mechanism that avoids the use of [[lock (computer science)|lock]] primitives while multiple [[thread (computing)|threads]] concurrently read and update elements that are linked through [[pointer (computer programming)|pointers]] and that belong to shared [[data structure]]s (e.g., [[linked lists]], [[Tree (data structure)|trees]], [[hash table]]s).<ref name=":0">{{Cite book|last=Tanenbaum|first=Andrew|title=Modern Operating Systems|publisher=Pearson|year=2015|isbn=9781292061429|edition=4th|location=USA|pages=148}}</ref> Whenever a thread is inserting or deleting elements of data structures in [[shared memory]], all readers are guaranteed to see and traverse either the older or the new structure, therefore avoiding inconsistencies (e.g., dereferencing [[null pointer]]s).<ref name=":0" /> It is used when performance of reads is crucial and is an example of [[space–time tradeoff]], enabling fast operations at the cost of more space. This makes all readers proceed as if there were no [[synchronization (computer science)|synchronization]] involved, hence they will be fast, but also making updates more difficult.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)