we can use cmpxchg to build atomic compare-and-swap by using the EAX register as the value to compare to (a) and the src register as b.
Please log in to leave a comment.
we can use cmpxchg to build atomic compare-and-swap by using the EAX register as the value to compare to (a) and the src register as b.