Commune · Savoirs
Read-copy-update
Synchronization mechanism based on mutual exclusion
In computer science, read-copy-update (RCU) is a synchronization mechanism that avoids the use of lock primitives while multiple threads concurrently read and update elements that are linked through pointers and that belong to shared data structures (e.g., linked lists, trees, hash tables). 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 pointers).
Sur Wikipédia
Texte en anglais Pas encore d'article dans ta langue : extrait en anglais.
In computer science, read-copy-update (RCU) is a synchronization mechanism that avoids the use of lock primitives while multiple threads concurrently read and update elements that are linked through pointers and that belong to shared data structures (e.g., linked lists, trees, hash tables). 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 pointers). 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 involved, hence they will be fast, but also making updates more difficult.
Texte : Wikipédia en anglais, CC BY-SA 4.0. ·
Cartes voisines
-
R★
Readers–writer lock
Synchronization primitive in computing
-
S★★
Single source of truth
Information systems good practice for data normalization using one source for a particular data element
-
★★★
Liste chaînée
Structure de données représentant une collection linéaire d'éléments de données appelés noeuds dont chacun pointe vers le suivant au moyen d'un pointeur
-
★★★★
Blockchain
Base de données distribuée des transactions
-
★★
Log-structured merge-tree
Data structure
-
★★★
Interleaved memory