A multinodal multiprocessor computer system and method is provided in which a
first
processor can acquire exclusive access to a first memory location in a shared memory,
and at the same time a second processor can access to a second memory location
of the shared memory that is located in the same node or in any other node of the
computer system. Memory controllers in each node of the computer system control
access to the shared memory. A switch coupled to each of the memory controllers
maintains a lock register, which is shadowed by each of the memory controllers,
for controlling access to the first memory location.