[Haskell-cafe] multi-thread and lazy evaluation

Yuras Shumovich shumovichy at gmail.com
Mon Dec 24 17:32:45 CET 2012


On Mon, 2012-12-24 at 16:16 +0100, timothyhobbs at seznam.cz wrote:
> The real question is, does this mean that GHC is stopping the world every 
> time it puts an MVar?

No, GHC rts only locks the MVar itself.
See here:
http://hackage.haskell.org/trac/ghc/browser/rts/PrimOps.cmm#L1358

Yuras




More information about the Haskell-Cafe mailing list