Question: Write a simple code that runs on two different threads, whose possible outcome can be different on a processor with sequential consistency ( SC )
Write a simple code that runs on two different threads, whose possible outcome can be different on a processor with sequential consistency SC and a processor with a more relaxed consistency model eg TSO, PC Briefly explain how and why the outcomes will be different.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
