Question
What does an atomic swap instruction exchange?
Select an option. Your answer will be checked instantly.
Correct Answer: C. The contents of a register and a memory location
Explanation:
An atomic swap can exchange a local value with a shared lock variable without interruption.
This indivisible exchange can be used to build mutual-exclusion locks.
Leave a Reply