If I have a computer with two cpu’s which run a process each, they both want to take place on the run with the same virtual address ‘x’. Could that happen that they get the same place in the physical address space? (Because they are simultaneous, and don’t know that the other asked for space too and could accidentally get same physical address)
Share
No, there are memory primitives which allow atomic access to memory. This allows multiple cpus to coordinate. Without this sort of primitive, two cpus would not have the ability to coordinate their efforts.