1 / 4

Sequential Consistency Example

Sequential Consistency Example. P 2 does not see P 1 ’s write of x = 1 before its first read of x , so it happens to have an out-of-date value. However, the write propagates to P 2 before its second read of x . This is legal under SC because:

tuvya
Download Presentation

Sequential Consistency Example

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Sequential Consistency Example • P2 does not see P1’s write of x = 1 before its first read of x, so it happens to have an out-of-date value. • However, the write propagates to P2 before its second read of x. • This is legal under SC because: • Processors do not always have to see up-to-date values • Processors just need to see writes in the order they happen • Note: it would also have been legal under SC for W(x) 1 to propagate to P2 before its first read of x or after its second read of x.

  2. P P P P CA CA CA CA M M M M Sequential Consistency Example (cont’d) P1 P2 P1: W(x) 1 x=1 Interconnection Network P1 writes x = 1. Then this updated value is sent over the interconnection network to the other processors. P4 P3

  3. P P P P CA CA CA CA M M M M Sequential Consistency Example (cont’d) P1 P2 P1: W(x) 1 P2: R(x) 0 x=1 x=0 Interconnection Network Because sequential consistency does not assume a global clock, the write to x hasn’t propagated to P2 before P2 reads x locally. P4 P3

  4. P P P P x=1 CA CA CA CA M M M M Sequential Consistency Example (cont’d) P1 P2 P1: W(x) 1 P2: R(x) 0 P2: R(x) 1 x=1 x=0 Interconnection Network By the time P2 reads x the second time, the remote write by P1 has propagated through the interconnection network. P4 P3

More Related