Title :
A Simple Snapshot Algorithm for Multicore Systems
Author :
Imbs, Damien ; Raynal, Michel
Author_Institution :
IRISA, Rennes, France
Abstract :
An atomic snapshot object is an object that can be concurrently accessed by n asynchronous processes prone to crash. It is made of m components (base atomic registers) and is defined by two operations: an update operation that allows a process to atomically assign a new value to a component and a snapshot operation that atomically reads and returns the values of all the components. To cope with the net effect of concurrency, asynchrony and failures, the algorithm implementing the update operation has to help concurrent snapshot operations in order they can always terminate. This paper presents a new and particularly simple construction of a snapshot object. This construction relies on a new principle, that we call "write first, help later" strategy. This strategy directs an update operation first to write its value and only then computes an helping snapshot value that can be used by a snapshot operation in order to terminate. Interestingly, not only the algorithms implementing the snapshot and update operations are simple and have easy proofs, but they are also efficient in terms of the number of accesses to the underlying atomic registers shared by the processes. An operation costs O(m) in the best case and O(n × m) in the worst case.
Keywords :
computational complexity; shared memory systems; atomic snapshot object; base atomic registers; concurrent snapshot operations; m components; multicore systems; simple snapshot algorithm; Algorithm design and analysis; Arrays; Computer crashes; Concurrent computing; Indexes; Multicore processing; Registers; Asynchronous shared memory system; Atomic snapshot; Atomicity; Concurrency; Linearizability; Process crash; Read/Write atomic register; Wait-freedom; atomic registers;
Conference_Titel :
Dependable Computing (LADC), 2011 5th Latin-American Symposium on
Conference_Location :
Sao Jose dos Campos
Print_ISBN :
978-1-4244-9700-3
Electronic_ISBN :
978-0-7695-4320-8
DOI :
10.1109/LADC.2011.11