Handling out of order execution

后端 未结 12 2133
忘掉有多难
忘掉有多难 2021-02-02 13:16

I recently stumbled upon this Wikipedia article. From my experience with multi-threading I am aware of the multitude of issues caused by the program being able to switch threads

12条回答
  •  忘了有多久
    2021-02-02 13:37

    How do you prevent the possibility out of execution functions occurring and blowing up in your face?

    You don't - the compiler can only change the order of execution when doing so doesn't alter the end result.

提交回复
热议问题