simonmar 2004/08/09 07:28:03 PDT
Modified files:
ghc/rts Schedule.c
Log:
Two changes:
- newly created or unblocked threads go to the back of the run
queue. This is fairer because it avoids possible starvation.
Fixes problem with conc004 test going much slower with optimisation.
- The context switch flag is only reset after a yield. Previously,
it was being reset before we ran a thread, which meant that a tick
that arrived during GC would be lost, and a thread doing lots of
GC could hog the CPU. Now, GC is effectively counted as part of
the last running thread's timeslice.
MERGE TO STABLE.
Revision Changes Path
1.199 +18 -9 fptools/ghc/rts/Schedule.c
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc