News for hackers. Stuff that matters.
Re:The x86 architecture is the weirdo (2004) by ajross on Tuesday April 19, 2022 @06:51PM (#31090428)
> x86 doesn't really impose sequential consistency between cores/threads. It imposes a Total Store Order (TSO) in which stores are always in order to each other but a store can be reordered after a load.

To be more pedantic (and hoping I remember this correctly): TSO is indistinguishable in software from full sequential consistency. Any code to detect the difference must by definition be subject to race conditions (or must be an atomic read/write operation that on x86 would be serializing anyway). So x86 in fact does provide SC semantics "between cores/threads". It does have visible reordering artifacts from the perspective of hardware designs (e.g. MMIO registers) where a load has side effects.

Re:The x86 architecture is the weirdo (2004) by gpderetta on Tuesday April 19, 2022 @07:39PM (#31090823)
That doesn't sound right to me. Dekker algorithm is broken on x86 without explicit barriers but it works on a SC machine.
Re:The x86 architecture is the weirdo (2004) by my123 on Tuesday April 19, 2022 @10:41PM (#31092195)
And there are actual SC machines in the wild. For example, the Carmel cores on the Tegra Xavier processor provide SC guarantees.