Liste des Groupes | Revenir à c arch |
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:What if you had to write code for a weakly ordered system, and the performance guidelines said to only use a membar when you absolutely have to. If you say something akin to "I do everything using std::memory_order_seq_cst", well, that is a violation right off the bat.On 11/15/2024 9:27 AM, Anton Ertl wrote:Sure, not all problems are solved by sequential consistency, and yes,jseigh <jseigh_es00@xemaps.com> writes:>Anybody doing that sort of programming, i.e. lock-free or distributed>
algorithms, who can't handle weakly consistent memory models, shouldn't
be doing that sort of programming in the first place.
>
Strongly consistent memory won't help incompetence.
Strong words to hide lack of arguments?
For instance, a 100% sequential memory order won't help you with, say,
solving ABA.
it won't solve race conditions like the ABA problem. But jseigh
implied that finding it easier to write correct and efficient code for
sequential consistency than for a weakly-consistent memory model
(e.g., Alphas memory model) is incompetent.
Les messages affichés proviennent d'usenet.