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
Consistency model
(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|Rules that guarantee predictable computer memory operation}} {{confusing|date=January 2015}} In [[computer science]], a '''consistency model''' specifies a contract between the programmer and a system, wherein the system guarantees that if the programmer follows the rules for operations on memory, memory will be [[data consistency|consistent]] and the results of reading, writing, or updating memory will be predictable. Consistency models are used in [[Distributed computing|distributed systems]] like [[distributed shared memory]] systems or distributed data stores (such as [[filesystem]]s, [[database]]s, [[optimistic replication]] systems or [[web caching]]). Consistency is different from coherence, which occurs in systems that are [[cache coherence|cached]] or cache-less, and is consistency of data with respect to all processors. Coherence deals with maintaining a global order in which writes to a single location or single variable are seen by all processors. Consistency deals with the ordering of operations to multiple locations with respect to all processors. [[High level language]]s, such as [[C++]] and [[Java (programming language)|Java]], maintain the consistency contract by translating memory operations into low-level operations in a way that preserves [[memory semantics (computing)|memory semantics]], reordering some memory instructions, and encapsulating required synchronization with library calls such as <code>pthread_mutex_lock()</code>.<ref>{{cite journal | author = Mark D. Hill | title = Multiprocessors Should Support Simple Memory Consistency Models | date = August 1998 | journal = IEEE Computer | volume = 31 | issue = 8 | pages = 28β34 | doi = 10.1109/2.707614 | url = http://digital.library.wisc.edu/1793/8706 }}</ref>
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)