threadDelay appears to use excessive CPU in GHCi
I have the following simple program:
import Control.Concurrent main = threadDelay (10^6) >> main
If I run it in GHCi it requires 2-5% of my CPU. If i compile it, it takes 0% of my CPU. It does not matter if I compile -O0, -O2, -threaded, it always uses 0% (which is good).
I have only tested this under Linux (Ubuntu Hardy) and GHC 6.8.3 on one machine.
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |