One embodiment disclosed relates to a method of selecting a default
locality for a memory object requested by a process running on a CPU in a
multiprocessor system. A determination is made as to whether the memory
object comprises a shared-memory object. If the memory object comprises
said shared-memory object, then the default locality is selected to be
within interleaved memory in the system. If not, a further determination
may be made as to whether the memory object comprises a stack-type
object. If the memory object comprises said stack-type object, then the
default locality may be selected to be within local memory at a same cell
as the requesting CPU. If not, a further determination may be made as to
whether the requesting process has threads running on multiple cells.