E&S CVS Commit: PEAK - Adjustments to scheduling algorithms. Tasks are now more sensitive to

pje at eby-sarna.com pje at eby-sarna.com
Wed Apr 16 11:14:00 EDT 2003

Module Name:	PEAK
Committed By:	pje
Date:		Wed Apr 16 15:13:18 UTC 2003

Modified Files:
	PEAK/src/peak/running: scheduler.py

Log Message:
Adjustments to scheduling algorithms.  Tasks are now more sensitive to
their priority, to better match MetaDaemon "greedy" approach.  Before this
adjustment, only tasks that were behind schedule for execution were
prioritized, and they were run one after another with no opportunity for
high priority tasks to "jump back to the head of the line".  Now, if a
high priority task is rescheduled before an earlier-scheduled low priority
task, it *will* jump to the head of the line, and thus starve lower
priority tasks until it becomes idle again.

The other adjustment made was to fix a problem where an idle timeout might
not be detected until the system had been idle for up to twice the timeout.
The idleness-checker now schedules itself to rerun at the earliest possible
moment of timeout, instead of waiting another full idle checking interval.

To view diffs of this commit, you can use the following URL(s):

To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 PEAK/src/peak/running/scheduler.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

More information about the source-changes mailing list