- Allow interactive tasks to use the maximum time-slice. This is not as

detrimental as I thought it would be in the case of massive process
   storms from a shell and it makes regular desktop usage noticeably
   better.
This commit is contained in:
Jeff Roberson 2004-02-01 10:38:13 +00:00
parent 903e95e660
commit 0392e39dff

View File

@ -172,7 +172,7 @@ struct td_sched *thread0_sched = &td_sched;
*/
#define SCHED_SLICE_MIN (slice_min)
#define SCHED_SLICE_MAX (slice_max)
#define SCHED_SLICE_INTERACTIVE (slice_min * 4)
#define SCHED_SLICE_INTERACTIVE (slice_max)
#define SCHED_SLICE_NTHRESH (SCHED_PRI_NHALF - 1)
#define SCHED_SLICE_RANGE (SCHED_SLICE_MAX - SCHED_SLICE_MIN + 1)
#define SCHED_SLICE_SCALE(val, max) (((val) * SCHED_SLICE_RANGE) / (max))