Ned Konz wrote:
Ned Konz wrote:
Rob Withers wrote:
It doesn't necessarily need VM support, I don't think, although it may be nice to hook into checkForInterrupts. I guess it would run at highIOPriority and I would like to adjust the priorities of the resumable processes. Perhaps run a logarithmic schedule. Is this feasible? Does anyone have this kinda code?
I think Bob Arning did one of these as part of his Refactoring Browser work.
Actually, his allowed you to run a process at alternating priorites for different periods of time (say priority 4 for 600 msec, then 8 for 400 msec, alternating).
It forked off a high-priority process that would re-adjust the priority of the process whose priority was being modulated.
Here is a condensation of the pertinent code (I removed instrumentation and testing support for clarity):
Thanks, Ned. This looks very interesting - I'll have a look tomorrow.
Rob
squeak-dev@lists.squeakfoundation.org