Chapter-6 Consistency and Replication
Chapter-6 Consistency and Replication
Chapter 6
Four4/23/2020
valid execution sequences for the
WSU@School processes of the previous 14
of Informatics slide.
Sequential Consistency and Serializability
• Definition: Sequential consistency is comparable to
serializability in the case of transactions.
• The deference is that of granularity: sequential
consistency is defined in terms of read and write
operations, whereas serializability is defined in terms
of transactions, which aggregate such operations.
• Sequential consistency is a programmer-friendly
model, but it has serious performance problems. So
other weaker consistency models have been proposed.
A4/23/2020
valid sequence WSU@School
of events of FIFO
of Informatics
consistency
19
FIFO Consistency
x = 1; x = 1; y = 1;
print (y, z); y = 1; print (x, z);
y = 1; print(x, z); z = 1;
print(x, z); print ( y, z); print (x, y);
z = 1; z = 1; x = 1;
print (x, y); print (x, y); print (y, z);
Process P1 Process P2
x = 1; y = 1;
if (y == 0) kill (P2); if (x == 0) kill (P1);
Messages sent Update (and possibly fetch update later) Poll and update
Response time at
Immediate (or fetch-update time) Fetch-update time
client
A comparison between push-based and pull-based protocols in the case of multiple client, single server systems.