主权项 |
1. A machine-readable non-transitory storage medium having instructions therein, which when executed by a machine, cause the machine to perform a method, the method comprising:
maintaining a plurality of executables for a task in a device, each executable capable of performing the task; in response to a change in an operating environment of the device, executing each executable to perform a test run of the task, each execution consuming an amount of power under the changed operating environment; and selecting one of the executables to perform the task in the future based on the amounts of power consumed for the test run of the task, wherein the selected one executable requires no more power than each of remaining ones of the executables. |