AMD Interview Question

Write some code, then discuss how different consistency models would execute it.