补全:有序性有没有保证
补全 guaranteed_ordering:Python 有 GIL 兜;C++ 看用没用 atomic。
内存模型对比:bytecode_atomic(语言)——CPython 单条字节码在 GIL 下不可分;needs_atomic_type=C++ 才要显式 atomic;guaranteed_ordering、safe(语言, 用没用 atomic)。
补全 guaranteed_ordering:Python 有 GIL 兜;C++ 看用没用 atomic。
内存模型对比:bytecode_atomic(语言)——CPython 单条字节码在 GIL 下不可分;needs_atomic_type=C++ 才要显式 atomic;guaranteed_ordering、safe(语言, 用没用 atomic)。
全部评论