An Entity of Type: Thing, from Named Graph: http://dbpedia.org, within Data Space: dbpedia.org

In computer science, read–modify–write is a class of atomic operations (such as test-and-set, fetch-and-add, and compare-and-swap) that both read a memory location and write a new value into it simultaneously, either with a completely new value or some function of the previous value. These operations prevent race conditions in multi-threaded applications. Typically they are used to implement mutexes or semaphores. These atomic operations are also heavily used in non-blocking synchronization. Maurice Herlihy (1991) ranks atomic operations by their consensus numbers, as follows:

Property Value
dbo:abstract
  • Ein Read-Modify-Write-Befehl (RMW-Befehl, englisch für Lesen-Ändern-Schreiben) bezeichnet in der Informatik einen atomaren Prozessorbefehl, der einen Datenwert aus dem Speicher lädt (read), ihn durch eine Berechnung verändert (modify) und den veränderten Wert an einer Speicherstelle, oft derselben, wieder ablegt (write). In einem erweiternden Sinn wird der Begriff auch für analoge Operationen mit Prozessorregistern und Operationen ohne Modifikation verwendet (z. B. Verschiebefehle). Da der Befehl eine atomare Operation ist, ist sichergestellt, dass die Speicherstelle während der Modifikation nicht von parallel laufenden Prozessen verändert wird. Diese Eigenschaft wird für die Implementierung von Lockingobjekten wie Semaphoren und Mutexen verwendet. (de)
  • In computer science, read–modify–write is a class of atomic operations (such as test-and-set, fetch-and-add, and compare-and-swap) that both read a memory location and write a new value into it simultaneously, either with a completely new value or some function of the previous value. These operations prevent race conditions in multi-threaded applications. Typically they are used to implement mutexes or semaphores. These atomic operations are also heavily used in non-blocking synchronization. Maurice Herlihy (1991) ranks atomic operations by their consensus numbers, as follows: * ∞: memory-to-memory move and swap, augmented queue, compare-and-swap, , , load-link/store-conditional (LL/SC) * 2n − 2: n-register assignment * 2: test-and-set, swap, fetch-and-add, queue, stack * 1: atomic read and atomic write It is impossible to implement an operation that requires a given consensus number with only operations with a lower consensus number, no matter how many of such operations one uses. Read–modify–write instructions often produce unexpected results when used on I/O devices, as a write operation may not affect the same internal register that would be accessed in a read operation. This term is also associated with RAID levels that perform actual write operations as atomic read–modify–write sequences. Such RAID levels include RAID 4, RAID 5 and RAID 6. (en)
  • 读-修改-写(read-modify-write)是计算机科学中的一个原子操作(atomic operation,类似的还有test-and-set, fetch-and-add, compare-and-swap等),操作过程是读一个内存位置(或IO端口),修改其值,再写回原位置。 必须要先读操作的一个原因是,系统架构往往只允许字(word)级的读写,必须先读出那些不做修改的位元,保持不变再写回。写成C语言语句类似于: *pRegister |= SOME_BIT; Read-modify-write指令用于IO端口时,可能会产生出乎意料的结果,如无法给一个比特置位。这往往是因为写操作并不影响到读操作的源寄存器。 RAID也使用这一术语描述原子操作的read-modify-write序列。 Such RAID levels include RAID 4, RAID 5 and RAID 6. (zh)
dbo:wikiPageID
  • 5587875 (xsd:integer)
dbo:wikiPageLength
  • 2792 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID
  • 1104537967 (xsd:integer)
dbo:wikiPageWikiLink
dbp:wikiPageUsesTemplate
dcterms:subject
rdfs:comment
  • 读-修改-写(read-modify-write)是计算机科学中的一个原子操作(atomic operation,类似的还有test-and-set, fetch-and-add, compare-and-swap等),操作过程是读一个内存位置(或IO端口),修改其值,再写回原位置。 必须要先读操作的一个原因是,系统架构往往只允许字(word)级的读写,必须先读出那些不做修改的位元,保持不变再写回。写成C语言语句类似于: *pRegister |= SOME_BIT; Read-modify-write指令用于IO端口时,可能会产生出乎意料的结果,如无法给一个比特置位。这往往是因为写操作并不影响到读操作的源寄存器。 RAID也使用这一术语描述原子操作的read-modify-write序列。 Such RAID levels include RAID 4, RAID 5 and RAID 6. (zh)
  • Ein Read-Modify-Write-Befehl (RMW-Befehl, englisch für Lesen-Ändern-Schreiben) bezeichnet in der Informatik einen atomaren Prozessorbefehl, der einen Datenwert aus dem Speicher lädt (read), ihn durch eine Berechnung verändert (modify) und den veränderten Wert an einer Speicherstelle, oft derselben, wieder ablegt (write). In einem erweiternden Sinn wird der Begriff auch für analoge Operationen mit Prozessorregistern und Operationen ohne Modifikation verwendet (z. B. Verschiebefehle). (de)
  • In computer science, read–modify–write is a class of atomic operations (such as test-and-set, fetch-and-add, and compare-and-swap) that both read a memory location and write a new value into it simultaneously, either with a completely new value or some function of the previous value. These operations prevent race conditions in multi-threaded applications. Typically they are used to implement mutexes or semaphores. These atomic operations are also heavily used in non-blocking synchronization. Maurice Herlihy (1991) ranks atomic operations by their consensus numbers, as follows: (en)
rdfs:label
  • RMW-Befehl (de)
  • Read–modify–write (en)
  • Read-modify-write (zh)
owl:sameAs
prov:wasDerivedFrom
foaf:isPrimaryTopicOf
is dbo:wikiPageRedirects of
is dbo:wikiPageWikiLink of
is foaf:primaryTopic of
Powered by OpenLink Virtuoso    This material is Open Knowledge     W3C Semantic Web Technology     This material is Open Knowledge    Valid XHTML + RDFa
This content was extracted from Wikipedia and is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License