The examples below can be used to demonstrate the difference of various weak memory consistency models.