Intermediate
Assembly Language
Q59 / 100
What is a memory fence (MFENCE, LFENCE, SFENCE)?
Correct! Well done.
Incorrect.
The correct answer is B) Memory barrier instructions that enforce ordering of memory operations relative to other memory accesses
B
Correct Answer
Memory barrier instructions that enforce ordering of memory operations relative to other memory accesses
Explanation
MFENCE serializes all memory operations. LFENCE serializes loads. SFENCE serializes stores. Required when dealing with out-of-order execution and weak memory models.
Progress
59/100