1. A method of thread selection for context switching on a plurality of compute nodes, the method comprising: executing, by a compute node of the plurality of compute nodes, an application using a plurality of threads of execution, including executing one or more of the threads of execution; predefining power characteristics of each thread available for execution of an application; selecting, by the compute node from a plurality of available threads of execution for the application, a next thread of execution in dependence upon power characteristics for each of the available threads by determining a current power mode for the compute node while executing a thread of the application, and selecting, from the available threads of execution, the next thread of execution having predefined power characteristics that are consistent with the current power mode; and executing the selected next thread.