Closed hycinth22 closed 5 months ago
This means that every single operation using SeqCst ordering within a program is part of a sin‐ gle total order that all threads agree on. This total order is consistent with the total modification order of each individual variable.
这里 total order 并不像离散数学中的“全序”关系,而且如果翻译成全序(似乎有点抽象),其它列举的词块也不好翻译,我暂时没有很好的想法,如果你有可以提出来💪
这里应该是一致的,只有在最强的SeqCst下这些并发操作才具有happen-before的全序关系,更弱的Order下只有部分操作之间存在偏序关系。
可能可以参考cppreference对此的中文翻译 https://zh.cppreference.com/w/cpp/atomic/memory_order
不过确实这么翻译会有不熟悉概念则更抽象更难懂的问题,我也暂时没有更好想法。
可以统一一下,第一个保留英文,然后标下 C++ 出处的脚注感觉挺可以的。
现在翻译为 总顺序 , 也许翻译为专有名词 全序 比较好?但是又有另一个问题, 还有Single total order、Total Modification Order等应该如何翻译