1. A method comprising: determining a number of required processors in a system based on a number of active threads; setting processor affinity to run the active threads on k number of processors, the k number of processors determined as being the number of required processors; and transitioning processors other than the k number of processors to enter a low-power state.