1. A method, comprising: using a processor for determining a plurality of tasks for a plurality of processing units that are collectively processing in a machine; using the processor for determining information related to temperatures of said plurality of processing units; using the processor for determining an assignment for said plurality of tasks to the plurality of processing units, based on said temperatures; and determining an overheating condition for at least one core, and preventing assigning a task to said at least one core in said overheating condition; controlling an intermittently-used cooler to cool processing units; and responsive to said controlling an intermittently-used cooler, allowing assigning a task to said at least one core during said controlling an intermittently-used cooler.