Jump Trading Interview Question

Describe how a java multi-threaded application obtains physical memory for processing data and describe how to optimize the operating system for this operation.