Questions: Sequential Consistency

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Process A writes X=1 at time 3:00 PM. Process B begins reading X at 3:01 PM (after A's write completed) and reads X=0 (the initial value). Is this execution sequentially consistent?

AYes — a total order exists where B's read is placed before A's write, and neither process's program order is violated
BNo — B started after A finished, so B must see A's write under any reasonable consistency model
CNo — sequential consistency requires all reads to return the most recently written value globally
DYes — but only if A and B are on the same machine sharing memory
Question 2 Multiple Choice

How does sequential consistency differ from linearizability?

ASequential consistency is stronger — it requires all processes to agree on a single global ordering of all operations
BLinearizability additionally requires the total order to respect real-time (wall-clock) ordering: if one operation completes before another begins, it must appear first
CSequential consistency requires operations to be atomic; linearizability allows operations to take time
DLinearizability is weaker — it does not require each individual process's operations to appear in program order
Question 3 True / False

Under sequential consistency, if process A's write completes before process B's read begins (measured in real time), process B is expected to see the value written by A.

TTrue
FFalse
Question 4 True / False

Sequential consistency guarantees that operations from a single process always appear in the global total ordering in the same sequence they were issued by that process.

TTrue
FFalse
Question 5 Short Answer

Explain why sequential consistency is weaker than linearizability, and why this relaxation makes it easier to implement efficiently in distributed systems.

Think about your answer, then reveal below.