1. A computer-implemented method to select nodes for threads and for shared data in order to improve nodal affinity of a computer system, comprising: determining that a first thread executing on a first processing node of a plurality of processing nodes is interrupted while accessing a file system object loaded into a memory of the first processing node; identifying a current home node attribute assigned to the file system object, wherein the current home node attribute identifies one of the plurality of processing nodes based on at least one of a preferred home node attribute of the file system object, historical usage data characterizing accesses of the file system object by one or more threads across the plurality of processing nodes, a set of threads across the plurality of processing nodes currently accessing the file system object, and an access type requested by the first thread to access the file system object, wherein a value of the preferred home node attribute is defined as metadata of the file system object; when the first thread is subsequently dispatched for execution, dispatching the first thread to the identified processing node for execution to avoid one or more subsequent interruptions of the first thread while accessing the file system object; and modifying the value of the preferred home node attribute of the file system object based on at least two of: a set of the most recent home nodes of the file system object, a node identified to access the file system object most frequently relative to other nodes, and a default home node of the file system object.