[project @ 1999-08-25 16:11:43 by simonmar]
Support for thread{WaitRead,WaitWrite,Delay}. These should behave identically to the 3.02 implementations. We now have the virtual timer on during all program runs, which ticks at 50Hz by default. This is used to implement threadDelay, so you won't get any better granularity than the tick frequency unfortunately. It remains to be seen whether using the virtual timer will have a measurable impact on performance for non-threadDelaying programs. All operations in the I/O subsystem should now be non-blocking with respect to other running Haskell threads. It remains to be seen whether this will have a measurable performance impact on non-concurrent programs (probably not).
Showing
- ghc/includes/PrimOps.h 4 additions, 2 deletionsghc/includes/PrimOps.h
- ghc/includes/Rts.h 1 addition, 3 deletionsghc/includes/Rts.h
- ghc/includes/TSO.h 26 additions, 2 deletionsghc/includes/TSO.h
- ghc/includes/Updates.h 3 additions, 3 deletionsghc/includes/Updates.h
- ghc/lib/concurrent/Concurrent.lhs 5 additions, 2 deletionsghc/lib/concurrent/Concurrent.lhs
- ghc/rts/GC.c 10 additions, 7 deletionsghc/rts/GC.c
- ghc/rts/HeapStackCheck.h 10 additions, 0 deletionsghc/rts/HeapStackCheck.h
- ghc/rts/HeapStackCheck.hc 15 additions, 13 deletionsghc/rts/HeapStackCheck.hc
- ghc/rts/Itimer.c 34 additions, 5 deletionsghc/rts/Itimer.c
- ghc/rts/Itimer.h 7 additions, 4 deletionsghc/rts/Itimer.h
- ghc/rts/PrimOps.hc 53 additions, 11 deletionsghc/rts/PrimOps.hc
- ghc/rts/ProfRts.h 1 addition, 4 deletionsghc/rts/ProfRts.h
- ghc/rts/Profiling.c 9 additions, 11 deletionsghc/rts/Profiling.c
- ghc/rts/Proftimer.c 3 additions, 26 deletionsghc/rts/Proftimer.c
- ghc/rts/Proftimer.h 3 additions, 1 deletionghc/rts/Proftimer.h
- ghc/rts/RtsFlags.c 1 addition, 32 deletionsghc/rts/RtsFlags.c
- ghc/rts/RtsFlags.h 2 additions, 2 deletionsghc/rts/RtsFlags.h
- ghc/rts/RtsStartup.c 11 additions, 3 deletionsghc/rts/RtsStartup.c
- ghc/rts/RtsUtils.c 14 additions, 23 deletionsghc/rts/RtsUtils.c
- ghc/rts/Schedule.c 83 additions, 29 deletionsghc/rts/Schedule.c
Loading
Please register or sign in to comment