User-space RCU: Memory-barrier menagerie
User-space RCU: Memory-barrier menagerie
Posted Nov 15, 2013 1:30 UTC (Fri) by chantecode (guest, #54535)Parent article: User-space RCU: Memory-barrier menagerie
Also I'm still confused about the guarantee provided by Dekker, because it's the only barrier that seem to guarantee a state machine forward progress, which I can't manage to understand why. But at least I know the effect of its ordering now, heh I have to start somewhere...
-- Frederic
Posted Nov 15, 2013 20:37 UTC (Fri)
by PaulMcKenney (✭ supporter ✭, #9624)
[Link]
On Dekker, there are no more forward-progress guarantees than for any other scenario. To see this, consider that once CPU 0 and CPU 1 complete execution of the Dekker scenario, then at least one of them will have seen the other's store. Note that Scenario 15 has a similar guarantee: once both CPUs complete execution, then at least one of Of course, the guarantee provided by the Dekker scenario is well-suited to mutual exclusion, but on the other hand I much prefer atomic operations. ;–)
Glad you like it!
User-space RCU: Memory-barrier menagerie
x
and y
will have the value 2.