I like to know how multi-core CPU implements the instruction "read and swap".
Is there a reg which store the memory address that is accessing by cpu? then any other cores that want to access this memory address will be blocked.
Does anyone confirm my idea?
Or give me some links or books to introduce the reason.
thanks!!