Implement the nonblocking queue of Example 13.30 on an x86. Do you need fence instructions to ensure

Question:

Implement the nonblocking queue of Example 13.30 on an x86. Do you need fence instructions to ensure consistency? If you have access to appropriate hardware, port your code to a machine with a more relaxed memory model (e.g., ARM or Power). What new fences or atomic references do you need?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: