3 ms·
# there is no 'balance', only this algorithm running my life while(True): task=getNextTask() if priority(task)>priority(current_task): backBurner.add(cu
by bstewartnyc 14y ago
# there is no 'balance', only this algorithm running my life
while(True):
task=getNextTask()
if priority(task)>priority(current_task):
backBurner.add(current_task)
current_task=task
startWorkOn(current_task)
else:
backBurner.add(task)