playform icon indicating copy to clipboard operation
playform copied to clipboard

More coherent scheduling

Open bfops opened this issue 10 years ago • 1 comments

One approach used near the top-level of client and server is to iterate through a closure until it returns "yes I'm done do the next thing", e.g. fetching network input. Another one used slightly further down is to run things for a set amount of time. We could probably merge these two strategies and get better overall behavior with less code.

bfops avatar Nov 03 '15 19:11 bfops

In general we want a threading/scheduling mechanism that lets us say at least:

  • X thread can't be starved for much longer than T
  • X thread is more important than Y thread

bfops avatar Nov 03 '15 19:11 bfops