if two different cores try to write to the same spot in main memory at the same time, what happens? Does main memory automatically only allow a spot in memory to be written one-at-a-time, or does some kind of expensive locking have to occur?
(Basically I want to know how expensive writing to an atomic volatile int is, and if it has affects on other processes & threads that don't access it, e.g. if the bus got locked it would affect everything, right?)