If minimum frequency is zero then just stop the task and start the present task in that core . Cost for this is 1 unit .
if mini == 0 : NEW_LINE INDENT isRunning [ miniind ] = False NEW_LINE isRunning [ ele ] = True NEW_LINE cost += 1 NEW_LINE DEDENT