System Research: Scheduling Toy

Round-robin toy scheduler pseudocode.

ready_queue = [ ]
while true:
  for task in ready_queue:
    run(task, quantum=5ms)
    if task.done: remove(task)

And a very naive priority bump:

def update_priority(task):
    task.priority = min(task.priority + 1, MAX)