computer architecture - What' s the advantage of LL/SC comparing with CAS(compare and swap) -


what' s advantage of ll/sc comparing cas(compare , swap) in computer architecture? think ll/sc can case livelock in many-core system, , case aba problem, cas not. can not find out advantage of ll/sc comparing cas. can tell me?

since nobody has answered, ll/sc not suffer aba problem since conditional store fail if address referenced ll modified. furthermore, can't livelock since 1 or more ll/sc pairs failing implies succeeded. cas potentially more expensive, since may require invalidate queue flushed.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -