#2891: threadDelay appears to use excessive CPU in GHCi
-----------------------+----------------------------------------------------
Reporter: JeremyShaw | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.8.3 | Severity: normal
Keywords: | Testcase:
Os: Linux | Architecture: x86
-----------------------+----------------------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2891>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs