Messages in this thread | | | Date | Sat, 23 Aug 2014 23:17:17 +0300 | From | Alexey Dobriyan <> | Subject | Re: [PATCH] DOCUMENTATION: Fixed typo in an example in memory-barriers.txt |
| |
On Sat, Aug 23, 2014 at 11:01:01AM -0700, Randy Dunlap wrote: > On 08/22/14 23:05, Ganesh Rapolu wrote: > > In the first example in the memory-barriers.txt file, CPU 2 is assigned to > > run (x = B; y = A;). However, the rest of the example proceeds as if CPU 2 had been > > running (x = A; y = B;) as shown by the descriptions of the possible executions: > > > > STORE A=3, STORE B=4, x=LOAD A->3, y=LOAD B->4 > > STORE A=3, STORE B=4, y=LOAD B->4, x=LOAD A->3 > > STORE A=3, x=LOAD A->3, STORE B=4, y=LOAD B->4 > > STORE A=3, x=LOAD A->3, y=LOAD B->2, STORE B=4 > > STORE A=3, y=LOAD B->2, STORE B=4, x=LOAD A->3 > > STORE A=3, y=LOAD B->2, x=LOAD A->3, STORE B=4 > > STORE B=4, STORE A=3, x=LOAD A->3, y=LOAD B->4 > > STORE B=4, ... > > ... > > > > The change was merely to make the inital evironment consistent with what happens in the > > rest of the example.
so change the rest of the example
| |