[GHC] #1523: Constant overhead of threadDelay

GHC trac at galois.com
Wed Jul 11 05:21:28 EDT 2007


#1523: Constant overhead of threadDelay
-----------------------------+----------------------------------------------
  Reporter:  chak            |          Owner:         
      Type:  bug             |         Status:  new    
  Priority:  low             |      Milestone:         
 Component:  libraries/base  |        Version:  6.7    
  Severity:  normal          |       Keywords:         
Difficulty:  Unknown         |             Os:  MacOS X
  Testcase:                  |   Architecture:  x86    
-----------------------------+----------------------------------------------
On x86/MacOS 10.4.10, the function Control.Concurrenct.threadDelay has a
 constant overhead of 100-200ms.  Consequently, the observed delay is 100-
 200ms longer than the specified delay and 100-200ms is the minimum delay
 that can be realised.

 When run under `ktrace`, the Haskell process spends the time in a larger
 number of poll-like `select()` calls.  I observed around 2800 `select()`
 calls for `threadDelay 1`.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1523>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


More information about the Glasgow-haskell-bugs mailing list