hxndg
V2EX  ›  问与答

弱内存序中, if 之后的 load 会不会早于 if 之前的 load 先 commit?

  •  
  •   hxndg · Jan 16, 2021 · 1055 views
    This topic created in 1943 days ago, the information mentioned may be changed or developed.

    简单来说就是这么一个流程

    L1: Load a
    C1: if (a != ok) goto L1
    L2 : Load b
    L3 : Load c
    

    如果没有中间那个 C1,我能理解 L1,L2,L3 的结果以任意顺序 Commit 但是,有了中间那个 C1 之后,L2/L3 结果的 Commit 还能早于 L1 吗? 弱内存序里,Commit 顺序还保持一致吗?

    hxndg
        1
    hxndg  
    OP
       Jan 16, 2021
    Nmmm,我大致想明白了
    > Multipile core platform one thread only pertain to execute like a one-thread.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   936 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 19:30 · PVG 03:30 · LAX 12:30 · JFK 15:30
    ♥ Do have faith in what you're doing.