Domanda di colloquio di Apple

What is the difference between strong and weak memory models?

Risposta di colloquio

Anonimo

9 dic 2019

A strong memory model has no instruction reordering while a weak memory model may reorder instructions to improve performance. A weak memory model should not reorder instructions that work on the same memory location.